Functions
Client
openInventory

Opens an inventory using the passed data.

exports.ox_inventory:openInventory(invType, data)
  • invType: string
    • 'player'
    • 'shop'
    • 'stash'
    • 'crafting'
    • 'container'
    • 'drop'
    • 'glovebox'
    • 'trunk'
    • 'dumpster'
  • data: number or string or table

Open the target player's inventory.

exports.ox_inventory:openInventory('player', 3)