mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-03 06:28:53 +00:00
new docs
This commit is contained in:
1 parent
3cebaf7fa5
commit
b5eba8423f
229 files changed
+6238
-10690
No files matched your search
@@ -0,0 +1,29 @@
|
||||
Returns the specified slot data as a table.
|
||||
|
||||
```lua
|
||||
|
||||
exports.ox_inventory:GetSlot(inv, slot)
|
||||
```
|
||||
|
||||
* inv: `table` or `string` or `number`
|
||||
* slot: `number`
|
||||
|
||||
**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