Installation & Usage

Installation

Install the provided SQL file

cooldowns.sql

Set up the server config

Found in configs > server.lua.

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)
Edit this page on GitHub

MIT 2026 © xT Development.

On this page