πŸŽ’Inventory

The VIP System supports multiple inventory systems by default. The functions in client/editable.lua and server/functions.lua control how items and stashes are handled for each inventory type.

How it works

  • OpenStash(stashID) (client) Opens the VIP stash depending on the selected inventory system in Config.Inventory. Currently supports:

    • codem-inventory

    • qb-inventory

    • ox_inventory

    • qs-inventory


  • AddItem(source, item, amount) (server) Adds an item to the player’s inventory based on the selected system.

  • GiveWeapon(source, weapon, ammo) (server) Gives a weapon to the player. Also handles ammo if Config.GiveAmmo is enabled.

  • AddItemToStash(...) & CreateStash(...) (server) Used to put items into a stash or register new stashes for systems like ox_inventory.

  • AddItemToCodemStash(...) (server) Special function for codem-inventory because it doesn’t have a direct export for adding items to a stash. This function retrieves the stash items, edits them, and then updates the stash manually.

Adding support for a new inventory

If you want to integrate another inventory system:

  1. Add a new elseif block inside the functions (e.g., OpenStash, AddItem, AddItemToStash, CreateStash).

  2. Use that inventory system’s events or exports to open stashes, add items, and register stashes.

  3. Update Config.Inventory with the new name so it can be selected.

Last updated