QBCore

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.

  1. Install all dependencies, and follow their respective installation instructions.

Dependencies Part

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

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.' },

Last updated