Installation
1. After purchasing the script, the script can be downloaded here https://portal.cfx.re/assets/granted-assets
2. Upload the contents of the zip file to your server
3. ensure devcore_needs in server.cfg after ox_lib and after framework
4. Now create items depending on the inventory.
If you are using ox_inventory
paste the contents of the file upload/inventory/ox_inventory.txt into the file ox_inventory/data/items.lua.
And upload/icons into ox_inventory/web/images.
If you are using qs-inventory
paste the contents of the file upload/inventory/qs_inventory.txt into the file qs-inventory/shared/items.lua.
and uplod/icons into qs-inventory/html/images
If you are using qb-inventory
paste the contents of the file upload/inventory/qb_inventory.txt into the file qb-core/shared/items.lua.
And upload/icons into qb-inventory/html/images.
If you are using a different inventory for ESX
paste the contents of the file upload/inventory/items.sql file into the database.
5.If you want to store the positions of items placed on the ground in the database, don't forget to upload the upload/sql/needs.sql file to the database
6. Go to esx_basicneeds/config.lua and delete all created items
-- Default --
Config.Items = {
["bread"] = {
type = "food",
prop= "prop_cs_burger_01",
status = 200000,
remove = true
},
["water"] = {
type = "drink",
prop = "prop_ld_flow_bottle",
status = 100000,
remove = true
}
}
--
After removed --
Config.Items = {
}
----
7. restart server
Make sure your server artifacts version is above the 5181.
Last updated