Installation

DEPENDENCIES

REQUIRED DEPENDENCIES

OPTIONAL DEPENDENCIES

Resource
Download

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_methrun

3) ASSET ADDING

  1. Open apex_methrun > 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_meth'] 	= {['name'] = 'recipe_meth',         ['label'] = 'Meth Recipe', 	 ['weight'] = 30, 	['type'] = 'item',  ['image'] = 'recipe_meth.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'}, 
['methylamine'] 	= {['name'] = 'methylamine', 	     ['label'] = 'Methylamine', 	 ['weight'] = 30, 	['type'] = 'item',  ['image'] = 'methylamine.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Methylamine'}, 
['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?'}, 
['meth'] 		= {['name'] = 'meth', 		     ['label'] = 'Meth Brick', 	         ['weight'] = 30, 	['type'] = 'item',  ['image'] = 'meth.png', 		['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Blue Substrance'}, 
['meth_baggy'] 		= {['name'] = 'meth_baggy',          ['label'] = 'Meth Baggy', 	         ['weight'] = 30, 	['type'] = 'item',  ['image'] = 'meth_baggy.png',       ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Blue Substrance in Small bags?'}, 
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('recipe_meth', 'Meth Recipe', 10, 0, 1),
('hydrochloricacid', 'Hydrochloric Acid', 10, 0, 1),
('methylamine', 'Methylamine', 10, 0, 1),
('drugscale', 'Scale', 10, 0, 1),
('drugkit', 'Drug Kit', 10, 0, 1),
('zipbags', 'Zipbags', 10, 0, 1),
('meth', 'Meth Brick', 10, 0, 1),
('meth_baggy', 'Meth Baggy', 10, 0, 1);

Last updated