Returns the icon texture for an equipped item


See also Inventory functions.

Signature:

texture = GetInventoryItemTexture("unit", slot)

Arguments:

  • unit - A unit to query; only valid for 'player' or the unit currently being inspected (string, unitID)
  • slot - An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)

Returns:

  • texture - Path to an icon texture for the item (string)