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_heroinrun

3) ASSET ADDING

  1. Open apex_heroinrun > 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_heroin'] 	= {['name'] = 'recipe_heroin', 	    ['label'] = 'Heroin Recipe', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'recipe_heroin.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Recipe for something?'}, 
['hydrochloricacid']    = {['name'] = 'hydrochloricacid',   ['label'] = 'Hydrochloric Acid',    ['weight'] = 30, 	['type'] = 'item',  ['image'] = 'hydrochloricacid.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Hydrochloric Acid'}, 
['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?'}, 
['heroin'] 		= {['name'] = 'heroin', 	    ['label'] = 'Heroin Brick', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'heroin.png', 		['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Brown Substrance'}, 
['heroin_baggy'] 	= {['name'] = 'heroin_baggy', 	    ['label'] = 'Heroin Baggy', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'heroin_baggy.png',     ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Brown Substrance in Small bags?'}, 
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('recipe_heroin', 'Heroin Recipe', 10, 0, 1),
('hydrochloricacid', 'Hydrochloric Acid', 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),
('heroin', 'Heroin Brick', 10, 0, 1),
('heroin_baggy', 'Heroin Baggy', 10, 0, 1);

Last updated