Files
overextended.github.io/docs/ox_inventory/Functions/Client/Inventory/Search.md
T
Jonneis 58a423ffb6 Fix typo (#9)
its exports not expors
2022-03-30 20:24:14 +02:00

447 B

Searches the inventory for a specified item.

-- search: string
-- item: table or string
-- metadata: table or string (optional)
exports.ox_inventory:Search(search, item, metadata)

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' the return value will be the amount of the specified item in player's inventory.