Functions
Server
Inventory
GetSlotForItem

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 or string or number
  • itemName: string
  • metadata: table?

Returns: number?