mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +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,13 @@
|
||||
Searches an inventory for a specified item.
|
||||
|
||||
```lua
|
||||
exports.ox_inventory:Search(inv, search, item, metadata)
|
||||
```
|
||||
|
||||
* inv: `table` or `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.
|
||||
Reference in new issue
Block a user