Installation & Usage
Installation
Usage
Callbacks are used to check whether a cooldown is active, and to enable a cooldown.
The cooldowns:isActive callback checks if the global cooldown is active before checking the specific cooldown.
-- Check if cooldown is active
local isActive = lib.callback.await('cooldowns:isActive', false, cooldownName)
-- Enables cooldown
local toggle = lib.callback.await('cooldowns:enable', false, cooldownName)Last updated on