Server guide
Make sure to check the qb-inventory.lua and ox_inventory.lua files for examples on how to implement the script for your framework. They are always up to date with the latest changes.
Inventory functions
addItem
-- This is an example from the brnx-iceorinksystem qb.lua file
-- @param source: number | string
-- @param item: string
-- @param amount: number
addItem = function(source, item, amount)
exports['qb-inventory']:AddItem(source, item, amount)
endremoveItem
-- This is an example from the brnx-iceorinksystem qb.lua file
-- @param source: number | string
-- @param item: string
-- @param amount: number
removeItem = function(source, item, amount)
return exports['qb-inventory']:RemoveItem(source, item, amount)
endgetItemAmount
openWardrobe
Last updated