Installation

DEPENDENCIES

REQUIRED DEPENDENCIES

OPTIONAL DEPENDENCIES

ResourceDownload

Mapping

uNiqx - Labs

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_weedrun

3) ASSET ADDING

  1. Open apex_weedrun > 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_weed'] 	= {['name'] = 'recipe_weed', 	['label'] = 'Weed Recipe', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'recipe_weed.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Recipe for something?'}, 
['weed_nutrition'] 	= {['name'] = 'weed_nutrition', ['label'] = 'Weed Nutrition', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'weed_nutrition.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Nutrition'}, 
['weed_seed'] 		= {['name'] = 'weed_seed', 	['label'] = 'Weed Seed', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'weed_seed.png', 	['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Seeds?'}, 
['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?'}, 
['weed'] 		= {['name'] = 'weed', 		['label'] = 'Weed Brick', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'weed.png', 		['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Grass?'}, 
['weed_baggy'] 		= {['name'] = 'weed_baggy',     ['label'] = 'Weed Baggy', 	['weight'] = 30, 	['type'] = 'item',  ['image'] = 'weed_baggy.png',       ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil,   ['description'] = 'Grass in Small bags?'}, 
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('recipe_weed', 'Weed Recipe', 10, 0, 1),
('weed_nutrition', 'Weed Nutrition', 10, 0, 1),
('weed_seed', 'Weed Seed', 10, 0, 1),
('drugscale', 'Scale', 10, 0, 1),
('drugkit', 'Drug Kit', 10, 0, 1),
('zipbags', 'Zipbags', 10, 0, 1),
('weed', 'Weed Brick', 10, 0, 1),
('weed_baggy', 'Weed Baggy', 10, 0, 1);

Last updated