mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
1 parent
235f26a0be
commit
6bc0f7dedc
1 file changed
+23
@@ -0,0 +1,23 @@
|
||||
Returns the inventory associated with the ID (and owner if defined). Otherwise returns null
|
||||
```lua
|
||||
---@param id number | table
|
||||
---@param owner string | boolean (optional)
|
||||
exports.ox_inventory:Inventory(id, owner)
|
||||
```
|
||||
Example:
|
||||
```lua
|
||||
local inventory = exports.ox_inventory:Inventory('example_stash', false)
|
||||
print(json.encode(inventory, {indent = true}))
|
||||
--[[
|
||||
{
|
||||
"id": "example_stash,
|
||||
"label": "Police Stash",
|
||||
"type": "stash,
|
||||
"slots": 50,
|
||||
"weight": 0,
|
||||
"maxWeight": 100000,
|
||||
"owner": false,
|
||||
...
|
||||
}
|
||||
]]
|
||||
```
|
||||
Reference in new issue
Block a user