How to install

Installation guide

Download Resource

You will receive the script in keymaster.fivem.net profile, after this click in blue "download" button.

After download, put the script in your server files.

Dependencies Part

Download all the scripts by clicking on their respective names, put them in the server files and start server.cfg

Webhooks

Inventory uses webhooks for logs system. All you need to do is replace the default webhooks, via config.lua

For more info how to create a discord webhook follow this tutorial: https://www.youtube.com/watch?v=fKksxz2Gdnc&t=7s&ab_channel=NoIntroTutorials

SQL

You only need to execute SQL file attached to inventory folder.

Config.lua

Setup all config.lua to your needs, read all comments in green color to be more easier.

Adjust images

To edit/change images, only need to follow this directory: jpr-inventario - html - images. To change item image, put an image and rename to item name.

Replacing Exports/Events

In order to use inventory, you need to replace all exports from qb-inventory to jpr-inventory otherwise you will have errors.

How to replace all exports ( fastest way ).

Backpack Part

Go to qb-core, shared, items.lua, replace phone item line to this ones:

['smallbackpack'] 				 = {['name'] = 'smallbackpack', 			  	  	['label'] = 'Small Backpack', 				['weight'] = 5000, 		['type'] = 'item', 		['image'] = 'smallbackpack.png', 		['unique'] = true, 	['useable'] = true, 	['shouldClose'] = false,	   ['combinable'] = nil,   ['description'] = 'Small backpack'},
['mediumbackpack'] 				 = {['name'] = 'mediumbackpack', 			  	  	['label'] = 'Medium Backpack', 				['weight'] = 6000, 		['type'] = 'item', 		['image'] = 'mediumbackpack.png', 		['unique'] = true, 	['useable'] = true, 	['shouldClose'] = false,	   ['combinable'] = nil,   ['description'] = 'Medium backpack'},
['reinforcedbackpack'] 				 = {['name'] = 'reinforcedbackpack', 			  	  	['label'] = 'Reinforced Backpack', 				['weight'] = 7000, 		['type'] = 'item', 		['image'] = 'reinforcedbackpack.png', 		['unique'] = true, 	['useable'] = true, 	['shouldClose'] = false,	   ['combinable'] = nil,   ['description'] = 'Reinforced backpack'},
['bigbackpack'] 				 = {['name'] = 'bigbackpack', 			  	  	['label'] = 'Big Backpack', 				['weight'] = 8000, 		['type'] = 'item', 		['image'] = 'bigbackpack.png', 		['unique'] = true, 	['useable'] = true, 	['shouldClose'] = false,	   ['combinable'] = nil,   ['description'] = 'Big backpack'},

Last check

Now, only rest to see fxmanifest.lua, open it and confirm the name of scripts, if they are different adjust to your script names.

If you use original QBCore base/scripts you can skip this

Last updated