Installation
1. Adding Custom Items to ox_inventory
You need to add your custom items in the ox_inventory items file, usually located at:
resources/[your_inventory]/ox_inventory/config/items.luaCopy and paste the following items:
["gang_hq"] = {
label = "Gang HQ",
weight = 250,
stack = false,
close = true
},
["gang_safe"] = {
label = "Gang Safe",
weight = 250,
stack = false,
close = true
},
["crimetablet"] = {
label = "Crime Tablet",
weight = 250,
stack = false,
close = true
},
["spray"] = {
label = "Spray",
weight = 250,
stack = false,
close = true
},
["spray_remover"] = {
label = "Spray Remover",
weight = 250,
stack = false,
close = true
},
["atmreader"] = {
label = "ATM Reader",
weight = 250,
stack = false,
close = true
},
["atminfo"] = {
label = "ATM Info",
weight = 250,
stack = false,
close = true
},
["sea_treasure"] = {
label = "Sea Case",
weight = 500,
stack = false,
close = true,
description = "A chest full of treasures from the sea"
},
["sea_key"] = {
label = "Sea Key",
weight = 500,
stack = false,
close = true,
description = "A key to open the sea chest"
},
["delivery_package"] = {
label = "Delivery Package",
weight = 300,
stack = false,
close = true,
description = "A package to deliver"
},
["drug_seed"] = {
label = "Weed Seed",
weight = 10,
stack = true,
description = ""
},
["blunt_weed"] = {
label = "Blunt",
weight = 10,
stack = true,
description = "Maybe I can smoke it later"
},
["weed_branch"] = {
label = "Weed Branch",
weight = 1000,
stack = true,
durability = 100,
description = ""
},
["weed_drying_rack"] = {
label = "Drying Rack",
weight = 1000,
stack = true,
description = ""
},
["weed_buds"] = {
label = "Weed Bud",
weight = 20,
stack = true,
description = ""
},
["rolling_paper"] = {
label = "Rolling Paper",
weight = 0,
}Note: Make sure the corresponding images for each item are in the
imagesfolder so they appear correctly in the inventory UI.
2. Server Configuration
Open your server.cfg and add the following line:
This sets the inventory clear time to 180 seconds.
3. Database Setup
Open the
database.sqlfile provided with the resource.Execute it in your serverโs database.
4. Dependacies
ox_lib
qb / qbx / esx
ox_target
ox_inventory
Last updated