mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
Remove internal functions and move external ones
This commit is contained in:
1 parent
82518e769b
commit
49d5315d52
76 files changed
-3
No files matched your search
@@ -0,0 +1,26 @@
|
||||
Returns the specified slot data as a table.
|
||||
|
||||
```lua
|
||||
-- inv: string or number
|
||||
-- slot: number
|
||||
exports.ox_inventory:GetSlot(inv, slot)
|
||||
```
|
||||
|
||||
**Example:**
|
||||
```lua
|
||||
local slot = exports.ox_inventory:GetSlot(source, 1)
|
||||
|
||||
print(json.encode(slot, {indent=true}))
|
||||
--[[
|
||||
{
|
||||
"weight": 2000,
|
||||
"name": "water",
|
||||
"metadata": [],
|
||||
"slot": 1,
|
||||
"label": "Water",
|
||||
"close": true,
|
||||
"stack": true,
|
||||
"count: 4
|
||||
}
|
||||
]]
|
||||
```
|
||||
Reference in new issue
Block a user