update inventory server docs

This commit is contained in:
Luke committed 2022-11-17 11:59:10 +01:00
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
}
]]
```
```