Installations

Remember that this resource has verified DMCA protection, and its illegal use or distribution could imply a claim for protection of Title 17 of Chapter 512 (c) (3) of the Digital Millennium Copyright Act

STEP 1 - Dependencies

It is important to use the dependencies that are indicated in this step, do not use others, otherwise you will receive critical errors
Quasar Drugs only has three dependencies, download them by clicking on the following buttons

STEP 2 - Start order

It is important to put the resources in the correct order, below qb-core but above the other scripts
In order for the resource to start correctly and not receive any errors, we must start the resources in the following order
1
ensure meta_libs
2
ensure bob74_ipl
3
ensure progressbar
4
ensure qs-drugs

STEP 3 - Database

Do not start the resource without first adding your items to the database, in your case in qb-core/shared/items.lua:
Drugs items for qb-core
1
['weed'] = {['name'] = 'weed', ['label'] = 'Weed', ['weight'] = 10, ['type'] = 'item', ['image'] = 'weed.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have'},
2
['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'},
3
['cocaine'] = {['name'] = 'cocaine', ['label'] = 'cocaine', ['weight'] = 10, ['type'] = 'item', ['image'] = 'cocaine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have'},
4
['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'},
5
['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'},
6
['chemicals'] = {['name'] = 'chemicals', ['label'] = 'chemicals', ['weight'] = 10, ['type'] = 'item', ['image'] = 'chemicals.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have'},
7
['meth'] = {['name'] = 'meth', ['label'] = 'meth', ['weight'] = 10, ['type'] = 'item', ['image'] = 'meth.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have'},
8
['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'},
9
['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'},
10
['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'},

STEP 4 - Config framework

We will change the framework in qs-drugs/config/config_framework.lua, there we will change the Config.Framework and place 'QBCore'
Config.Framework = 'QBCore' -- 'ESX' or 'QBCore'.
Config.CustomFrameworkExport = false -- Do you want to add your own export?
function CustomFrameworkExport()
-- ESX = exports["es_extended"]:getSharedObject()
-- QBCore = exports['qb-core']:GetCoreObject()
end
-----
-- ESX Configs.
Config.getSharedObject = 'esx:getSharedObject' --Modify it if you use an ESX Custom.
Config.playerLoaded = 'esx:playerLoaded' --Modify it if you use an ESX Custom.
Config.setJob = 'esx:setJob' --Modify it if you use an ESX Custom.
Config.canCarryItem = false -- Do you use canCarryItems? (Only ESX)
-- QBCore Configs.
Config.QBCore = 'qb-core' --Modify it if you use an QBCore Custom.
Config.OnJobUpdate = 'QBCore:Client:OnJobUpdate' --Modify it if you use an QBCore Custom.
Config.OnPlayerLoaded = 'QBCore:Client:OnPlayerLoaded' --Modify it if you use an QBCore Custom.