mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
1.4 KiB
1.4 KiB
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Opens an inventory using the passed data. Forces a player to open an inventory, without usual security checks (groups, coords).
exports.ox_inventory:forceOpenInventory(playerId, invType, data)
- playerId:
number - invType:
string'player''stash''container''drop''glovebox''trunk''dumpster'
- data:
numberorstringortable
Open the target player's inventory.
exports.ox_inventory:forceOpenInventory(1, 'player', 3)
Admin command to open a player's inventory.
RegisterCommand('openplayerinv', function(source, args)
exports.ox_inventory:forceOpenInventory(source, 'player', tonumber(args[1]))
end, true)
Open the first stash in data/stashes.
exports.ox_inventory:forceOpenInventory(1, 'stash', 'apartment420')
Open a custom stash (created on the server with RegisterStash).
exports.ox_inventory:forceOpenInventory(1, 'stash', 'society_police')
Open a stash with a specific owner.
exports.ox_inventory:forceOpenInventory(1, 'stash', { id = 'police_locker', owner = 'license:xxxxxxxx' })