mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
1.1 KiB
1.1 KiB
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Opens an inventory using on the passed data.
-- invType: string
-- data: number | string | table
exports.ox_inventory:openInventory(invType, data)
Open the target player's inventory.
exports.ox_inventory:openInventory('player', 3)
Open the fourth "General Store" location.
exports.ox_inventory:openInventory('shop', { type = 'General', id = 4 })
Open the first stash in data/stashes.
exports.ox_inventory:openInventory('stash', 1)
Open a custom stash (created on the server with RegisterStash).
exports.ox_inventory:openInventory('stash', 'society_police')
Open a stash with a specific owner.
exports.ox_inventory:openInventory('stash', { id = 'police_locker', owner = 'license:xxxxxxxx' })