Installation

Welcome to the Quasar Drugs installation guide, here you can learn how to completely install our asset, following each step we will achieve a clean and fluid installation where you will not find any problems, as long as the documentation has been completed in full.

For compatibility and security reasons, we request that WinSCP be used mandatorily to manage the script files instead of FileZilla. WinSCP offers greater stability and better integration with our work environment, ensuring a more efficient handling of assets and minimizing issues related to file transfers. We appreciate your cooperation in ensuring a better experience for everyone.

If you do not have programming experience, we recommend that you read each step completely without skipping any lines, since all documentation is important and should not be ignored under any circumstances. If you have a trusted developer, you can install this quickly, easily and safely if you complete this documentation step by step.

If at the end of this documentation you still have any problems, review each step again, after having checked that everything is correct, you can obtain more information about common errors in the Common Problems section within this same documentation to seek help independently.


Asset download

To find the asset, you must have made the purchase using your own keymaster account. Otherwise, you can use the transfer system to move the asset to a different keymaster account.

If you need to make an update you must also do this step again, download the asset and you will get the complete update.

Once the purchase is made on our official website, you will receive your asset directly in your Keymaster, in your own panel you can download the asset and install it following the following documentation.

If you have more problems regarding Fivem Escrow, accounts or asset startup errors you can go here and see if any of them match your case, since Escrow requires some basic things for its operation, such as your keymaster account, your licensekey , etc.

FiveM Asset Escrow System

Asset dependencies

Make sure to install all dependencies before running the asset, always check the meta_libs folder as it could have another file with the same name inside.

This asset has some dependencies that are completely mandatory and important for the operation of the asset. If you do not have these dependencies, your asset will probably start and have some error or message in its command console.


Asset positioning

Correctly position the assets by following this step, if something goes wrong you will probably get errors about exports not found, do not skip this step.

For the correct execution of the asset, we will put the asset and its dependencies inside a folder called [drugs], then we will execute it completely using ensure as in the example.

The starting order is not very important in this asset, but just in case we will leave the basics so as not to receive general errors when using it. Always respect the framework and inventory above this asset.

-- First we will start the cores, never below
ensure es_extended or qb-core

-- The inventory should be executed above
ensure [inventory]

-- Run qs-drugs here along with its dependencies
ensure [drugs]

Database & Items

If you don't have the items integrated correctly, you will receive random errors.

Check that you don't have duplicate items in your inventory or database before integrating them, otherwise you might have some errors.

This asset depends on certain items for its operation, so don't forget to integrate all items correctly into your database or inventory system, depending on how you use your server.

If your inventory is not among the following, you can create the file yourself using the examples of each item by displaying any of the following tabs.

Items for qs-inventory
["weed"] = {
    ["name"] = "weed",
    ["label"] = "Marijuana",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "weed.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Hey brother, I think this is so natural..."
},

["weed_packaged"] = {
    ["name"] = "weed_packaged",
    ["label"] = "Marijuana empaquetada",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "weed_packaged.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Hey brother, I think this is so natural..."
},

["cocaine"] = {
    ["name"] = "cocaine",
    ["label"] = "Cocaine",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "cocaine.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "The powder of love, who would have thought it would be so addictive?"
},

["cocaine_cut"] = {
    ["name"] = "cocaine_cut",
    ["label"] = "Cocaina Cortada",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "cocaine_cut.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "The powder of love, who would have thought it would be so addictive?"
},

["cocaine_packaged"] = {
    ["name"] = "cocaine_packaged",
    ["label"] = "Cocaina empaquetada",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "cocaine_packaged.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "The powder of love, who would have thought it would be so addictive?"
},

["meth"] = {
    ["name"] = "meth",
    ["label"] = "Metanfetamina",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "meth.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Oh shit brother, that's hard, very hard."
},

["chemicals"] = {
    ["name"] = "chemicals",
    ["label"] = "Quimicos",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "chemicals.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Oh shit brother, that's hard, very hard."
},

["meth_packaged"] = {
    ["name"] = "meth_packaged",
    ["label"] = "Metanfetamina empaquetada",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "meth_packaged.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Oh shit brother, that's hard, very hard."
},

["sorted_money"] = {
    ["name"] = "sorted_money",
    ["label"] = "Dinero cortado",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "sorted_money.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Oh shit brother, that's hard, very hard."
},

["package_money"] = {
    ["name"] = "package_money",
    ["label"] = "Dinero empaquetado",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "package_money.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Oh shit brother, that's hard, very hard."
},
Items for qb-inventory
['weed'] 			 			= {['name'] = 'weed', 							['label'] = 'Weed', 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'weed.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['weed_packaged'] 			 	= {['name'] = 'weed_packaged', 					['label'] = 'weed_packaged', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'weed_packaged.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['cocaine'] 					= {['name'] = 'cocaine', 						['label'] = 'cocaine', 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['cocaine_cut'] 			 	= {['name'] = 'cocaine_cut', 					['label'] = 'cocaine_cut', 					['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine_cut.png', 			['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['cocaine_packaged'] 			= {['name'] = 'cocaine_packaged', 				['label'] = 'cocaine_packaged', 		    ['weight'] = 10, 		['type'] = 'item', 		['image'] = 'cocaine_packaged.png',   	['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['chemicals'] 			 		= {['name'] = 'chemicals', 						['label'] = 'chemicals', 					['weight'] = 10, 		['type'] = 'item', 		['image'] = 'chemicals.png', 			['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['meth'] 			 			= {['name'] = 'meth', 							['label'] = 'meth',	 						['weight'] = 10, 		['type'] = 'item', 		['image'] = 'meth.png', 				['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['meth_packaged'] 			 	= {['name'] = 'meth_packaged', 					['label'] = 'meth_packaged', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'meth_packaged.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['sorted_money'] 			 	= {['name'] = 'sorted_money', 					['label'] = 'sorted_money', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'sorted_money.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
['package_money'] 			 	= {['name'] = 'package_money', 					['label'] = 'package_money', 				['weight'] = 0, 		['type'] = 'item', 		['image'] = 'package_money.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'No have'},
Items for ox_inventory
["weed"] = {
    label = "Weed",
    weight = 1,
    stack = true,
    close = false,
},

["weed_packaged"] = {
    label = "Weed Packeged",
    weight = 1,
    stack = true,
    close = false,
},

["cocaine"] = {
    label = "Cocaine",
    weight = 1,
    stack = true,
    close = false,
},

["cocaine_cut"] = {
    label = "Cocaine Cuted",
    weight = 1,
    stack = true,
    close = false,
},

["cocaine_packaged"] = {
    label = "Cocaine Packeged",
    weight = 1,
    stack = true,
    close = false,
},

["chemicals"] = {
    label = "Chemicals",
    weight = 1,
    stack = true,
    close = false,
},

["meth"] = {
    label = "Meth",
    weight = 1,
    stack = true,
    close = false,
},

["meth_packaged"] = {
    label = "Meth packaged",
    weight = 1,
    stack = true,
    close = false,
},

["sorted_money"] = {
    label = "Sorted money",
    weight = 1,
    stack = true,
    close = false,
},

["package_money"] = {
    label = "Package money",
    weight = 1,
    stack = true,
    close = false,
},
items for esx_inventory
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ('cocaine', 'Cocaine', 1, 0, 1),
    ('cocaine_cut', 'Cocaine cut', 2, 0, 1),
    ('cocaine_packaged', 'Cocaine packet', 3, 0, 1),
    ('weed', 'Marijuana', 1, 0, 1),
    ('weed_packaged', 'Weed packet', 2, 0, 1),
    ('chemicals', 'Chemicals', 1, 0, 1),
    ('meth', 'Methamphetamine', 2, 0, 1),
    ('meth_packaged', 'Meth packet', 3, 0, 1),
    ('sorted_money', 'Sorted Money', 1, 0, 1),
    ('package_money', 'Package Money', 1, 0, 1)
;

Basic asset configuration

We do not recommend editing frameworks unnecessarily, since almost all assets depend exclusively on your framework and exports on the name of your framework. Otherwise and if you edited your framework, read these steps carefully.

If you still require more open codes for the configuration, you can check within client/custom and server/custom to adapt the asset to your personal taste.

Don't forget to add your vehiclekeys system inside config/seller.lua, in Config.Vehiclekeys.

Please expand each part to see information about the configuration of the asset, this way you will understand the general operation of the asset on the framework and editable files side.

Basic framework configuration

The asset will work automatically if your framework is called es_extended or qb-core, it will automatically detect if any of them are started. In case your framework has been renamed, you can modify it in config.lua to edit the name of your framework.

Advanced framework configuration

If your framework is completely modified, both in events and name, you should access client/custom/framework or server/custom/framework to adapt the native events of your framework to the codes you have created. If this step doesn't work, we ask that you ask your framework modifier or trusted developer for help.

More general settings

This asset contains multiple configurations within the config folder. But you can also access more open source and configurations within client/custom or server/custom. We do not recommend using these configurations if you do not have the basics of programming.

Last updated