mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
14 lines
383 B
Plaintext
14 lines
383 B
Plaintext
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.
|