Files
overextended.github.io/docs/ox_inventory/Functions/Server/Inventory/GetSlotIdsWithItem.md
T
2023-05-06 22:59:48 +10:00

357 B

Get all slot ids in an inventory matching the given name and metadata.

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

Returns: number[]?