Update examples and descriptions for ox_inventory

This commit is contained in:
Linden committed 2022-03-02 19:18:34 +11:00
1 parent 2a931c887a
commit ee76abb4db
10 files changed
+114 -125

No files matched your search

@@ -1,13 +1,13 @@
Searches the inventory for a specified item.
```lua
-- search: string or number ('slots' | 1, 'count' | 2)
-- search: string
-- 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
If the `search` argument is defined as `'slots'` 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
Otherwise if the `search` argument is defined as `'count'` the return value
will be the amount of the specified item in player's inventory.