Installation

DEPENDENCIES

REQUIRED DEPENDENCIES

OPTIONAL DEPENDENCIES

ResourceDownload

Mapping

Mr Brown - Druglabs

RESOURCE INSTALLATION GUIDE

1) RESOURCE DOWNLOAD

Download your resource from FiveM's Keymaster.

2) RESOURCE POSITIONING

You need to make sure that apex_lib is always started before any of our scripts!

ensure apex_lib
ensure [apex] -- or ensure apex_cocainerun

3) ASSET ADDING

  1. Open apex_cocainerun > assets > inventory_images

  2. Copy files from the folder and add them into your inventory image folder

4) ITEM ADDING (QBCORE & ESX)

The first block shows the data, you'll have to put into shared/items.lua in qbcore

The second block shows the data, you'll have to put into the database in esx

['recipe_cocaine'] 	= {['name'] = 'recipe_cocaine', ['label'] = 'Cocaine Recipe', 	['weight'] = 30, ['type'] = 'item',  ['image'] = 'recipe_cocaine.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Recipe for something?'}, 
['benzocaine'] 		= {['name'] = 'benzocaine', 	['label'] = 'Benzocaine', 	['weight'] = 30, ['type'] = 'item',  ['image'] = 'benzocaine.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Benzocaine'}, 
['cement_powder'] 	= {['name'] = 'cement_powder', 	['label'] = 'Cement Powder', 	['weight'] = 30, ['type'] = 'item',  ['image'] = 'cement_powder.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Construction Material'}, 
['drugscale'] 		= {['name'] = 'drugscale', 	['label'] = 'Scale', 		['weight'] = 30, ['type'] = 'item',  ['image'] = 'drugscale.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'A special Scale'}, 
['drugkit'] 		= {['name'] = 'drugkit', 	['label'] = 'Drug Kit', 	['weight'] = 30, ['type'] = 'item',  ['image'] = 'drugkit.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'A kit?'}, 
['zipbags'] 		= {['name'] = 'zipbags', 	['label'] = 'Zipbags', 		['weight'] = 30, ['type'] = 'item',  ['image'] = 'zipbags.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Small bags?'}, 
['cocaine'] 		= {['name'] = 'cocaine', 	['label'] = 'Cocaine Brick', 	['weight'] = 30, ['type'] = 'item',  ['image'] = 'cocaine.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'White Substrance'}, 
['cocaine_baggy'] 	= {['name'] = 'cocaine_baggy', 	['label'] = 'Cocaine Baggy', 	['weight'] = 30, ['type'] = 'item',  ['image'] = 'cocaine_baggy.png',   ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'White Substrance in Small bags?'}, 
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('recipe_cocaine', 'Cocaine Recipe', 10, 0, 1),
('benzocaine', 'Benzocaine', 10, 0, 1),
('cement_powder', 'Cement Powder', 10, 0, 1),
('drugscale', 'Scale', 10, 0, 1),
('drugkit', 'Drug Kit', 10, 0, 1),
('zipbags', 'Zipbags', 10, 0, 1),
('cocaine', 'Cocaine Brick', 10, 0, 1),
('cocaine_baggy', 'Cocaine Baggy', 10, 0, 1);

Last updated