Functions
Client
Inventory
GetSlotsWithItem

Get data all slots in the player's inventory matching the given name and metadata.

exports.ox_inventory:GetSlotsWithItem(itemName, metadata, strict)
  • itemName: string
  • metadata?: table
  • strict?: boolean
    • Strictly match metadata properties, otherwise use partial matching.

Returns: table[]?