--import
local inventory = Framework.inventory or exports.bl_bridge:inventory()
openInventory
(Note: you need to register inventory with server registerInventory
before using this)
inventory.openInventory(invType, id)
- id:
string
- invType:
shop
|stash
hasItem
inventory.hasItem(itemName, itemCount)
- itemName:
string
- itemCount:
number
playerItems
inventory.playerItems() -- return player items