mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +00:00
External client functions
This commit is contained in:
1 parent
5e27cfb5be
commit
2a931c887a
13 files changed
+218
-3
No files matched your search
@@ -0,0 +1,13 @@
|
||||
Searches the inventory for a specified item.
|
||||
|
||||
```lua
|
||||
-- search: string or number ('slots' | 1, 'count' | 2)
|
||||
-- item: table or string
|
||||
-- metadata: table or string (optional)
|
||||
expors.ox_inventory:Search(search, item, metadata)
|
||||
```
|
||||
If the `search` argument is defined as `'slots'` or `1` the return will be a table
|
||||
of slots where the item was found at.
|
||||
|
||||
Otherwise if the `search` argument is defined as `'count'` or `2` the return value
|
||||
will be the amount of the specified item in player's inventory.
|
||||
Reference in new issue
Block a user