mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +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 @@
|
||||
Searches an inventory for a specified item.
|
||||
|
||||
```lua
|
||||
-- inv: string or number
|
||||
-- search: string
|
||||
-- item: table or string
|
||||
-- metadata: table or string (optional)
|
||||
|
||||
exports.ox_inventory:Search(inv, search, item, metadata)
|
||||
```
|
||||
* inv: `string` or `number`
|
||||
* search: `string`
|
||||
* item: `table` or `string`
|
||||
* metadata?: `table` or `string`
|
||||
|
||||
`search` can be either `'slots'` or `'count'`, where slots will return a table of data
|
||||
and count will return the found amount of the specified item.
|
||||
and count will return the found amount of the specified item.
|
||||
Reference in new issue
Block a user