oxserver
ox_inventory:RegisterStash
ox server documentation with a FiveM Lua example.
Summary
Registers a stash inventory (storage) in ox_inventory — for houses, jobs, trunks, and shared storage.
Returns
void
Parameters
idstringUnique stash id.labelstringDisplay name.slotsnumberNumber of slots.maxWeightnumberMax weight.ownerstring|booleanOwner (identifier) or shared.Example
exports.ox_inventory:RegisterStash('house_1', 'House Storage', 50, 100000, false)Common pitfalls
- Register stashes on resource start (server-side).
- Set an owner for personal stashes; leave shared for job/community storage.
- The id must be unique and stable so contents persist.
Related functions
Related guides
Managing jobs on your server?
Viper Multi-Job lets players hold several jobs and switch between them with grade, salary and duty handled — QBCore, QBox and ESX, validated server-side.
See Viper Multi-Job →