Returns cooldown information about an item in the player's bags


See also Container functions.

Signature:

start, duration, enable = GetContainerItemCooldown(container, slot)

Arguments:

  • container - Index of one of the player's bags or other containers (number, containerID)
  • slot - Index of an item slot within the container (number, containerSlotID)

Returns:

  • start - The value of GetTime() at the moment the cooldown began, or 0 if the item is ready (number)
  • duration - The length of the cooldown, or 0 if the item is ready (number)
  • enable - 1 if a Cooldown UI element should be used to display the cooldown, otherwise 0. (Does not always correlate with whether the item is ready.) (number)