QBox
You will receive the script in keymaster.fivem.net profile, after this click in blue "download" button.
After download, put the script in your server files.
Remeber:
You need to be logged with the same cfx.re account you used to buy in my tebex store.
Install all dependencies, and follow their respective installation instructions.
Dependencies Part
qb-minigames or qb-skillbar or any skillbar (need to adjust client_config if its not one of these two) ( optional )
Download all the scripts by clicking on their respective names, put them in the server files and ensure in server.cfg
SQL
Execute JPR - Drug System.sql file in your SQL
This is mandatory!
Inventory Setup
Go to qb-core, shared, items.lua, replace phone item line to this ones:
-- Tables
['meth_table'] = { ['name'] = 'meth_table', ['label'] = 'Meth Table', ['weight'] = 100, ['type'] = 'item', ['image'] = 'meth_table.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Usually used to place objects.' },
['weed_table'] = { ['name'] = 'weed_table', ['label'] = 'Weed Table', ['weight'] = 100, ['type'] = 'item', ['image'] = 'weed_table.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Usually used to place objects.' },
['coke_table'] = { ['name'] = 'coke_table', ['label'] = 'Coke Table', ['weight'] = 100, ['type'] = 'item', ['image'] = 'coke_table.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Usually used to place objects.' },
['lsd_table'] = { ['name'] = 'lsd_table', ['label'] = 'LSD Table', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_table.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Usually used to place objects.' },
-- Processor items
['baggy_empty2'] = { ['name'] = 'baggy_empty2', ['label'] = 'Packaging', ['weight'] = 100, ['type'] = 'item', ['image'] = 'baggy_empty2.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'To store what you don’t want others to see.' },
['redsulfurbarrel'] = { ['name'] = 'redsulfurbarrel', ['label'] = 'Methylamine', ['weight'] = 100, ['type'] = 'item', ['image'] = 'redsulfurbarrel.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Smells like prison... but pays well.' },
['acid'] = { ['name'] = 'acid', ['label'] = 'Antifreeze', ['weight'] = 100, ['type'] = 'item', ['image'] = 'acid.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Not for the car. For the "recipe".' },
['kerosene'] = { ['name'] = 'kerosene', ['label'] = 'Kerosene', ['weight'] = 100, ['type'] = 'item', ['image'] = 'kerosene.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Flammable — literally and in business.' },
['plantpot'] = { ['name'] = 'plantpot', ['label'] = 'Pot', ['weight'] = 100, ['type'] = 'item', ['image'] = 'plantpot.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'The beginning of any green empire.' },
['watering_can'] = { ['name'] = 'watering_can', ['label'] = 'Watering Can', ['weight'] = 100, ['type'] = 'item', ['image'] = 'watering_can.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'To keep the business growing — and the cops watching.' },
['drug_fertilizer'] = { ['name'] = 'drug_fertilizer', ['label'] = 'Fertilizer', ['weight'] = 100, ['type'] = 'item', ['image'] = 'drug_fertilizer.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'The blue secret to a blooming (and profitable) business.' },
['drug_fertilizer_high'] = { ['name'] = 'drug_fertilizer_high', ['label'] = 'High-Quality Fertilizer', ['weight'] = 100, ['type'] = 'item', ['image'] = 'drug_fertilizer_high.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'The blue secret to a blooming (and profitable) business, with quality.' },
['baking_soda'] = { ['name'] = 'baking_soda', ['label'] = 'Sodium Bicarbonate', ['weight'] = 100, ['type'] = 'item', ['image'] = 'baking_soda.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Special flour.' },
['watering_can_high'] = { ['name'] = 'watering_can_high', ['label'] = 'High-Quality Watering Can', ['weight'] = 100, ['type'] = 'item', ['image'] = 'watering_can_high.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'To keep the business growing — and the cops watching, in high quality.' },
-- Weed
['rainbowbelts_seed'] = { ['name'] = 'rainbowbelts_seed', ['label'] = 'Weed Seed', ['weight'] = 100, ['type'] = 'item', ['image'] = 'rainbowbelts_seed.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Small now, profitable later.' },
['weed'] = { ['name'] = 'weed', ['label'] = 'Weed', ['weight'] = 100, ['type'] = 'item', ['image'] = 'weed.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Green that grows the business — and police suspicion.' },
['weed_baggy'] = { ['name'] = 'weed_baggy', ['label'] = 'Packed Weed', ['weight'] = 100, ['type'] = 'item', ['image'] = 'weed_baggy.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Green worth gold.' },
-- Meth
['meth_tray2'] = { ['name'] = 'meth_tray2', ['label'] = 'Meth Tray', ['weight'] = 100, ['type'] = 'item', ['image'] = 'meth_tray2.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Shiny, more profit — and guaranteed headaches.' },
['baggy_meth'] = { ['name'] = 'baggy_meth', ['label'] = 'Packed Meth', ['weight'] = 100, ['type'] = 'item', ['image'] = 'baggy_meth.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Blue, shiny, and gets you caught.' },
['meth'] = { ['name'] = 'meth', ['label'] = 'Crystal Meth', ['weight'] = 100, ['type'] = 'item', ['image'] = 'meth.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Now it fits in your pocket!' },
-- Cocaine
['cocaine_seed'] = { ['name'] = 'cocaine_seed', ['label'] = 'Coca Seed', ['weight'] = 100, ['type'] = 'item', ['image'] = 'cocaine_seed.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Doesn’t give shade, but gives profit.' },
['cocaleaf'] = { ['name'] = 'cocaleaf', ['label'] = 'Coca Leaf', ['weight'] = 100, ['type'] = 'item', ['image'] = 'cocaleaf.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'White powder that makes money, not health.' },
['coke_process'] = { ['name'] = 'coke_process', ['label'] = 'Processed Coca', ['weight'] = 100, ['type'] = 'item', ['image'] = 'coke_process.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Looks more like a paste than a powder.' },
['baggy_cocaine'] = { ['name'] = 'baggy_cocaine', ['label'] = 'Packed Coca', ['weight'] = 100, ['type'] = 'item', ['image'] = 'baggy_cocaine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Fast powder, slow problems.' },
-- Opium
['opium'] = { ['name'] = 'opium', ['label'] = 'Opium', ['weight'] = 100, ['type'] = 'item', ['image'] = 'opium.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A small opium leaf.' },
['opium_baggy'] = { ['name'] = 'opium_baggy', ['label'] = 'Packed Opium', ['weight'] = 100, ['type'] = 'item', ['image'] = 'opium_baggy.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Baggy of opium.' },
-- Peyote
['peyote'] = { ['name'] = 'peyote', ['label'] = 'Peyote', ['weight'] = 100, ['type'] = 'item', ['image'] = 'peyote.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A small peyote.' },
['peyote_baggy'] = { ['name'] = 'peyote_baggy', ['label'] = 'Packed Peyote', ['weight'] = 100, ['type'] = 'item', ['image'] = 'peyote_baggy.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Baggy of peyote.' },
-- LSD
['lsd'] = { ['name'] = 'lsd', ['label'] = 'LSD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A small LSD piece.' },
['lsd_baggy'] = { ['name'] = 'lsd_baggy', ['label'] = 'Packed LSD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'lsd_baggy.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Baggy of LSD.' },
Go to qb-core, shared, items.lua, replace phone item line to this ones:
meth_table = { name = 'meth_table', label = 'Meth Table', weight = 100, type = 'item', ammotype = nil, image = 'meth_table.png', unique = false, useable = true, description = 'Usually used to place objects.' },
weed_table = { name = 'weed_table', label = 'Weed Table', weight = 100, type = 'item', ammotype = nil, image = 'weed_table.png', unique = false, useable = true, description = 'Usually used to place objects.' },
coke_table = { name = 'coke_table', label = 'Coke Table', weight = 100, type = 'item', ammotype = nil, image = 'coke_table.png', unique = false, useable = true, description = 'Usually used to place objects.' },
lsd_table = { name = 'lsd_table', label = 'LSD Table', weight = 100, type = 'item', ammotype = nil, image = 'lsd_table.png', unique = false, useable = true, description = 'Usually used to place objects.' },
baggy_empty2 = { name = 'baggy_empty2', label = 'Packaging', weight = 100, type = 'item', ammotype = nil, image = 'baggy_empty2.png', unique = false, useable = false, description = 'To store what you don’t want others to see.' },
redsulfurbarrel = { name = 'redsulfurbarrel', label = 'Methylamine', weight = 100, type = 'item', ammotype = nil, image = 'redsulfurbarrel.png', unique = false, useable = false, description = 'Smells like prison... but pays well.' },
acid = { name = 'acid', label = 'Antifreeze', weight = 100, type = 'item', ammotype = nil, image = 'acid.png', unique = false, useable = false, description = 'Not for the car. For the "recipe".' },
kerosene = { name = 'kerosene', label = 'Kerosene', weight = 100, type = 'item', ammotype = nil, image = 'kerosene.png', unique = false, useable = false, description = 'Flammable — literally and in business.' },
plantpot = { name = 'plantpot', label = 'Pot', weight = 100, type = 'item', ammotype = nil, image = 'plantpot.png', unique = false, useable = false, description = 'The beginning of any green empire.' },
watering_can = { name = 'watering_can', label = 'Watering Can', weight = 100, type = 'item', ammotype = nil, image = 'watering_can.png', unique = false, useable = true, description = 'To keep the business growing — and the cops watching.' },
drug_fertilizer = { name = 'drug_fertilizer', label = 'Fertilizer', weight = 100, type = 'item', ammotype = nil, image = 'drug_fertilizer.png', unique = false, useable = true, description = 'The blue secret to a blooming (and profitable) business.' },
drug_fertilizer_high = { name = 'drug_fertilizer_high', label = 'High-Quality Fertilizer', weight = 100, type = 'item', ammotype = nil, image = 'drug_fertilizer_high.png', unique = false, useable = true, description = 'The blue secret to a blooming (and profitable) business, with quality.' },
baking_soda = { name = 'baking_soda', label = 'Sodium Bicarbonate', weight = 100, type = 'item', ammotype = nil, image = 'baking_soda.png', unique = false, useable = false, description = 'Special flour.' },
watering_can_high = { name = 'watering_can_high', label = 'High-Quality Watering Can', weight = 100, type = 'item', ammotype = nil, image = 'watering_can_high.png', unique = false, useable = true, description = 'To keep the business growing — and the cops watching, in high quality.' },
rainbowbelts_seed = { name = 'rainbowbelts_seed', label = 'Weed Seed', weight = 100, type = 'item', ammotype = nil, image = 'rainbowbelts_seed.png', unique = false, useable = true, description = 'Small now, profitable later.' },
weed = { name = 'weed', label = 'Weed', weight = 100, type = 'item', ammotype = nil, image = 'weed.png', unique = false, useable = false, description = 'Green that grows the business — and police suspicion.' },
weed_baggy = { name = 'weed_baggy', label = 'Packed Weed', weight = 100, type = 'item', ammotype = nil, image = 'weed_baggy.png', unique = false, useable = false, description = 'Green worth gold.' },
meth_tray2 = { name = 'meth_tray2', label = 'Meth Tray', weight = 100, type = 'item', ammotype = nil, image = 'meth_tray2.png', unique = false, useable = false, description = 'Shiny, more profit — and guaranteed headaches.' },
baggy_meth = { name = 'baggy_meth', label = 'Packed Meth', weight = 100, type = 'item', ammotype = nil, image = 'baggy_meth.png', unique = false, useable = false, description = 'Blue, shiny, and gets you caught.' },
meth = { name = 'meth', label = 'Crystal Meth', weight = 100, type = 'item', ammotype = nil, image = 'meth.png', unique = false, useable = false, description = 'Now it fits in your pocket!' },
cocaine_seed = { name = 'cocaine_seed', label = 'Coca Seed', weight = 100, type = 'item', ammotype = nil, image = 'cocaine_seed.png', unique = false, useable = true, description = 'Doesn’t give shade, but gives profit.' },
cocaleaf = { name = 'cocaleaf', label = 'Coca Leaf', weight = 100, type = 'item', ammotype = nil, image = 'cocaleaf.png', unique = false, useable = false, description = 'White powder that makes money, not health.' },
coke_process = { name = 'coke_process', label = 'Processed Coca', weight = 100, type = 'item', ammotype = nil, image = 'coke_process.png', unique = false, useable = false, description = 'Looks more like a paste than a powder.' },
baggy_cocaine = { name = 'baggy_cocaine', label = 'Packed Coca', weight = 100, type = 'item', ammotype = nil, image = 'baggy_cocaine.png', unique = false, useable = true, description = 'Fast powder, slow problems.' },
opium = { name = 'opium', label = 'Opium', weight = 100, type = 'item', ammotype = nil, image = 'opium.png', unique = false, useable = true, description = 'A small opium leaf.' },
opium_baggy = { name = 'opium_baggy', label = 'Packed Opium', weight = 100, type = 'item', ammotype = nil, image = 'opium_baggy.png', unique = false, useable = false, description = 'Baggy of opium.' },
peyote = { name = 'peyote', label = 'Peyote', weight = 100, type = 'item', ammotype = nil, image = 'peyote.png', unique = false, useable = true, description = 'A small peyote.' },
peyote_baggy = { name = 'peyote_baggy', label = 'Packed Peyote', weight = 100, type = 'item', ammotype = nil, image = 'peyote_baggy.png', unique = false, useable = false, description = 'Baggy of peyote.' },
lsd = { name = 'lsd', label = 'LSD', weight = 100, type = 'item', ammotype = nil, image = 'lsd.png', unique = false, useable = true, description = 'A small LSD piece.' },
lsd_baggy = { name = 'lsd_baggy', label = 'Packed LSD', weight = 100, type = 'item', ammotype = nil, image = 'lsd_baggy.png', unique = false, useable = false, description = 'Baggy of LSD.' },
Go to ox_inventory > data > items.lua, add this ones:
['meth_table'] = {
label = 'Meth Table',
weight = 100,
stack = false,
close = true,
},
['weed_table'] = {
label = 'Weed Table',
weight = 100,
stack = false,
close = true,
},
['coke_table'] = {
label = 'Coke Table',
weight = 100,
stack = false,
close = true,
},
['lsd_table'] = {
label = 'LSD Table',
weight = 100,
stack = false,
close = true,
},
['baggy_empty2'] = {
label = 'Packaging',
weight = 100,
stack = false,
close = true,
},
['redsulfurbarrel'] = {
label = 'Methylamine',
weight = 100,
stack = true,
close = true,
},
['acid'] = {
label = 'Antifreeze',
weight = 100,
stack = true,
close = true,
},
['kerosene'] = {
label = 'Kerosene',
weight = 100,
stack = true,
close = true,
},
['plantpot'] = {
label = 'Pot',
weight = 100,
stack = true,
close = true,
},
['watering_can'] = {
label = 'Watering Can',
weight = 100,
stack = true,
close = true,
},
['drug_fertilizer'] = {
label = 'Fertilizer',
weight = 100,
stack = true,
close = true,
},
['drug_fertilizer_high'] = {
label = 'High-Quality Fertilizer',
weight = 100,
stack = true,
close = true,
},
['baking_soda'] = {
label = 'Sodium Bicarbonate',
weight = 100,
stack = true,
close = true,
},
['watering_can_high'] = {
label = 'High-Quality Watering Can',
weight = 100,
stack = true,
close = true,
},
['rainbowbelts_seed'] = {
label = 'Weed Seed',
weight = 100,
stack = true,
close = true,
},
['weed'] = {
label = 'Weed',
weight = 100,
stack = true,
close = true,
},
['weed_baggy'] = {
label = 'Packed Weed',
weight = 100,
stack = true,
close = true,
},
['meth_tray2'] = {
label = 'Meth Tray',
weight = 100,
stack = true,
close = true,
},
['baggy_meth'] = {
label = 'Packed Meth',
weight = 100,
stack = true,
close = true,
},
['meth'] = {
label = 'Crystal Meth',
weight = 100,
stack = true,
close = true,
},
['cocaine_seed'] = {
label = 'Coca Seed',
weight = 100,
stack = true,
close = true,
},
['cocaleaf'] = {
label = 'Coca Leaf',
weight = 100,
stack = true,
close = true,
},
['coke_process'] = {
label = 'Processed Coca',
weight = 100,
stack = true,
close = true,
},
['baggy_cocaine'] = {
label = 'Packed Coca',
weight = 100,
stack = true,
close = true,
},
['opium'] = {
label = 'Opium',
weight = 100,
stack = true,
close = true,
},
['opium_baggy'] = {
label = 'Packed Opium',
weight = 100,
stack = true,
close = true,
},
['peyote'] = {
label = 'Peyote',
weight = 100,
stack = true,
close = true,
},
['peyote_baggy'] = {
label = 'Packed Peyote',
weight = 100,
stack = true,
close = true,
},
['lsd'] = {
label = 'LSD',
weight = 100,
stack = true,
close = true,
},
['lsd_baggy'] = {
label = 'Packed LSD',
weight = 100,
stack = true,
close = true,
},Last updated