Returns the path to an icon texture for the item. Unlike GetItemInfo, this function always returns icons for valid items, even if the item is not in the client's cache.


See also Item functions.

Signature:

texture = GetItemIcon(itemID) or GetItemIcon("itemName") or GetItemIcon("itemLink")

Arguments:

  • itemID - An item's ID (number)
  • itemName - An item's name (string)
  • itemLink - An item's hyperlink, or any string containing the itemString portion of an item link (string)

Returns:

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