๐งInstallation
Here we're going to guide you in the installation of origen_inventory.
First we want you to know that our script only supports the following versions of the two most used frameworks, in older versions it may be usable but we do not provide support since the development focuses on the following versions:
VERY IMPORTANT for any framework
For a safe startup, please do not put your framework and inventory folders in shared folders (they are in brackets)
If you do:
ensure qb-core
ensure origen_inventory
And, we assume that origin_inventory is inside [origen] and then do:
ensure [origen]
This will cause origin_inventory to restart again and make it error out, same for core.
REMOVE THESE RESOURCES FROM BRACKETS FOLDERS AND SET ON ROOT RESOURCES FOLDER.
ensure oxmysql
ensure qb-core
ensure origen_inventory
...(make sure starts other scripts that use inventory functions after the origen_inventory)Now you have to insert the SQL files into your database:
Qb-Inventory Compatibility
Go to origen_inventory/fxmanifest.lua and uncomment:
-- Before:
-- provide 'qb-inventory'
-- After:
provide 'qb-inventory'Since this and the latest versions of the inventory, installing Origen Inventory has been easier than ever.
We only need to place two files without making any modifications to the framework.
1. ESX Config
Go to es_extended/shared/config/main.lua
Find Config.CustomInventory
Replace by
Config.CustomInventory = 'origen_inventory'Comment or remove on
es_extended/shared/config/main.lua-- DO NOT CHANGE BELOW THIS LINE !!! <--- ignore this <3 ------------------------------------- if GetResourceState("ox_inventory") ~= "missing" then Config.CustomInventory = "ox" endDone!
2. Install files
Go to es_extended/server/bridge/inventory
Copy the file below
Go to es_extended/server/classes/overrides
Copy the file below
3. Start the script in your server.cfg
Now you need to put the start in your server.cfg file. Like this form:
Enjoy ๐
Just for inventory version 2.0
Go to qbx_core/server/main.lua y remove lines 5-8:
Go to origen_inventory/fxmanifest.lua and uncomment:
Go to qbx_core/bridge/qb/shared/main.lua comment lines 3-65:
Go to qbx_core/bridge/qb/server/main.lua and comment lines 6-7:
Go to qbx_core/server/player.lua and comment lines 1251-1253:
Start your script in your server.cfg. Following this form:
Last updated