Cooldowns
SERVER FUNCTIONS
add_cooldown
Adds a cooldown for a player or globally.
Parameters
source:
numbercooldown_type:
stringduration:
numberis_global:
boolean
bdtk.add_cooldown(source, cooldown_type, duration, is_global)check_cooldown
Checks if a cooldown is active.
Parameters
source:
numbercooldown_type:
stringis_global:
boolean
Returns
boolean
bdtk.check_cooldown(source, cooldown_type, is_global)clear_cooldown
Clears a specific cooldown.
Parameters
source:
numbercooldown_type:
stringis_global:
boolean
bdtk.clear_cooldown(source, cooldown_type, is_global)clear_expired_cooldowns
Clears all expired cooldowns.
bdtk.clear_expired_cooldowns()clear_resource_cooldowns
Clears all cooldowns for a given resource.
Parameters
resource:
string
bdtk.clear_resource_cooldowns(resource)Last updated