mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
update inventory server docs
This commit is contained in:
1 parent
c013d3ff0c
commit
4dbd9dd4ab
21 files changed
+112
-91
No files matched your search
@@ -1,12 +1,13 @@
|
||||
Returns the item from the specified inventory.
|
||||
|
||||
```lua
|
||||
-- inv: string or number
|
||||
-- item: table or string
|
||||
-- metadata: any (optional)
|
||||
-- returnsCount: boolean (optional)
|
||||
exports.ox_inventory:GetItem(inv, item, metadata, returnsCount)
|
||||
```
|
||||
* inv: `string` or `number`
|
||||
* item: `table` or `string`
|
||||
* Can be items array.
|
||||
* metadata?: `any`
|
||||
* returnsCount?: `boolean`
|
||||
|
||||
If `returnsCount` is set to true, the returned value will be the `count` based on
|
||||
how many times the item was found.
|
||||
@@ -29,4 +30,4 @@ print(json.encode(item, {indent=true}))
|
||||
"close": true
|
||||
}
|
||||
]]
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user