A free and lightweight script for adding persistent backpacks to your server using ox_inventory.
- 0.0 ms Usage: Optimized for performance.
- Persistent Backpack Prop: Automatically adds a backpack to the player's back when in inventory.
- Customizable Parameters: Easily configure item names and storage capacities.
- Framework Compatibility: Works seamlessly with
ox_core,ESX,QBCore, and any other framework supportingox_inventory.
- Download the script from the Gamestorm Backpack Repository.
- Add the Backpack Item to your inventory as described in the Extra Information section below.
- Add Backpack Image to your inventory images:
- Copy the image located at
gamestorm_backpack\_inventory_images\backpack.pngto your inventory image directory.
- Copy the image located at
- Place the Script in your
resourcesdirectory. - Add the following line to your
server.cfgfile:ensure gamestorm_backpack
- Ensure this line is placed after
ox_libbut beforeox_inventory.
- Ensure this line is placed after
To add the backpack item, include this in your ox_inventory/data/items.lua file:
['backpack'] = {
label = 'Backpack',
weight = 220,
stack = false,
consume = 0,
client = {
export = 'gamestorm_backpack.openBackpack'
}
},Check out how it works in the Live Preview.
If you need assistance or want to stay updated, join our Discord Server.