Returns information about an item by id. Returns a item information for a given toy or nil if no data exists.


See also _(API_CAT_TOY).

Signature:

itemID, name, texture, collected = C_ToyBox.GetToyInfo(itemID)

Arguments:

  • itemID - An item's ID (number, itemID)

Returns:

  • itemID - An item's ID (number, itemID)
  • name - Name of the item (string)
  • texture - Path to an icon texture for the item (string)
  • collected - Returns true if you collected the toy and false if you don't have it yet (boolean)