π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 inConfig.Inventory. Currently supports:codem-inventoryqb-inventoryox_inventoryqs-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 ifConfig.GiveAmmois enabled.AddItemToStash(...)&CreateStash(...)(server) Used to put items into a stash or register new stashes for systems likeox_inventory.AddItemToCodemStash(...)(server) Special function forcodem-inventorybecause 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:
Add a new
elseifblock inside the functions (e.g.,OpenStash,AddItem,AddItemToStash,CreateStash).Use that inventory systemβs events or exports to open stashes, add items, and register stashes.
Update
Config.Inventorywith the new name so it can be selected.
Last updated