🎒qb-inventory
Store your precious!
Introduction
Inventory State
Example (server):
RegisterCommand('checkState', function(source)
local player = Player(source)
local state = player.state.inv_busy
print('Inventory current state is', state)
end, true)
RegisterCommand('lockInventory', function(source)
local player = Player(source)
player.state.inv_busy = true
print('Inventory current state is', state)
end, true)
RegisterCommand('unlockInventory', function(source)
local player = Player(source)
player.state.inv_busy = false
print('Inventory current state is', state)
end, true)Example (client):
Item Info
LoadInventory
SaveInventory
ClearInventory
ClearStash
CloseInventory
OpenInventory
OpenInventoryById
CreateInventory
RemoveInventory
CreateShop
OpenShop
CanAddItem
AddItem
RemoveItem
SetInventory
SetItemData
Item Info Example:
UseItem
HasItem
GetFreeWeight
GetTotalWeight
GetSlots
GetSlotsByItem
GetFirstSlotByItem
GetItemBySlot
GetItemByName
GetItemsByName
GetItemCount
GetInventory
Last updated
Was this helpful?
