# IScriptPlayer.setCooldown [← IScriptPlayer](index.md) · [← Master](../../wiki.md) setCooldown(int inventorySlot, int ticks) void Set cooldown of a particular inventory index of the player. --- setCooldown(IScriptItemStack item, int ticks) void Set cooldown for given item.