Search
Searches an inventory for a specified item.
-- inv: string or number
-- search: string
-- item: table or string
-- metadata: table or string (optional)
exports.ox_inventory:Search(inv, search, item, metadata)
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.