Get the slot id of an existing item matching the given data, or an empty slot.
exports.ox_inventory:GetSlotForItem(inv, itemName, metadata)
- inv:
table
orstring
ornumber
- itemName:
string
- metadata:
table?
Returns: number?
Get the slot id of an existing item matching the given data, or an empty slot.
exports.ox_inventory:GetSlotForItem(inv, itemName, metadata)
table
or string
or number
string
table?
Returns: number?