Database Setup
This resource uses a JSON database, so no SQL installation is needed. Chill.
Inventory Setup
Images
Move the icons from install/images to your inventory directory:
- QB-Inventory:
qb-inventory/html/images/ - OX Inventory:
ox_inventory/web/images/
QB-Core Items
Add the following to qb-core/shared/items.lua:
lua
['ammonia_barrel'] = {
['name'] = 'ammonia_barrel',
['label'] = 'Ammonia Barrel',
['weight'] = 5000,
['type'] = 'item',
['image'] = 'ammonia_barrel.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'A barrel filled with industrial ammonia. Use near lab vehicle to place (prop_barrel_exp_01a).'
},
['methlabkit'] = {
['name'] = 'methlabkit',
['label'] = 'Meth Lab Kit',
['weight'] = 3000,
['type'] = 'item',
['image'] = 'methlabkit.png',
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'A portable kit used to set up a meth lab.'
},
['meth_cooking_pot'] = {
['name'] = 'meth_cooking_pot',
['label'] = 'Meth Cooking Pot',
['weight'] = 2500,
['type'] = 'item',
['image'] = 'meth_cooking_pot.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'A heavy pot used for cooking chemical mixtures.'
},
['crystal_meth'] = {
['name'] = 'crystal_meth',
['label'] = 'Crystal Meth',
['weight'] = 200,
['type'] = 'item',
['image'] = 'crystal_meth.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Highly refined crystal meth.'
},
['pseudoephedrine_extract'] = {
['name'] = 'pseudoephedrine_extract',
['label'] = 'Pseudoephedrine Extract',
['weight'] = 500,
['type'] = 'item',
['image'] = 'pseudoephedrine_extract.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Extracted pseudoephedrine used in chemical processing.'
},
['red_phosphorus_powder'] = {
['name'] = 'red_phosphorus_powder',
['label'] = 'Red Phosphorus Powder',
['weight'] = 400,
['type'] = 'item',
['image'] = 'red_phosphorus_powder.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Highly reactive red phosphorus powder.'
},
['lithium_strips'] = {
['name'] = 'lithium_strips',
['label'] = 'Lithium Strips',
['weight'] = 300,
['type'] = 'item',
['image'] = 'lithium_strips.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Thin lithium strips used in chemical reactions.'
},
OX Inventory Items
Add the following to ox_inventory/data/items.lua:
lua
['ammonia_barrel'] = {
label = 'Ammonia Barrel',
weight = 5000,
stack = true,
close = true,
description = 'A barrel filled with industrial ammonia. Use near lab vehicle to place.',
},
['methlabkit'] = {
label = 'Meth Lab Kit',
weight = 3000,
stack = true,
close = true,
description = 'A portable kit used to set up a meth lab.',
},
['meth_cooking_pot'] = {
label = 'Meth Cooking Pot',
weight = 2500,
stack = true,
close = true,
description = 'A heavy pot used for cooking chemical mixtures.',
},
['crystal_meth'] = {
label = 'Crystal Meth',
weight = 200,
stack = true,
close = true,
description = 'Highly refined crystal meth.',
},
['pseudoephedrine_extract'] = {
label = 'Pseudoephedrine Extract',
weight = 500,
stack = true,
close = true,
description = 'Extracted pseudoephedrine used in chemical processing.',
},
['red_phosphorus_powder'] = {
label = 'Red Phosphorus Powder',
weight = 400,
stack = true,
close = true,
description = 'Highly reactive red phosphorus powder.',
},
['lithium_strips'] = {
label = 'Lithium Strips',
weight = 300,
stack = true,
close = true,
description = 'Thin lithium strips used in chemical reactions.',
},
Start Resource
Add this to your server.cfg:
cfg
ensure J0-Meth-Assets
ensure J0-Meth