Cooldowns
The utility library comes equipped with a full cooldown system to allow for setting cooldowns locally or globally across the server.
Cooldown functions are both client and server side.
Client Functions
Below is a list of all the available functions related to cooldowns which can be accessed through the utils object client side.
check_cooldown
Can be used to check a cooldown on the client side.
Server Functions
Below is a list of all the available functions related to cooldowns which can be accessed through the utils object server side.
add_cooldown
Can be used to add a cooldown for a specific action, optionally for a global scope or for a specific player, and tracks the invoking resource.
check_cooldown
Can be used to check the status of a specific cooldown.
clear_cooldown
Can be used to clear a specific cooldown.
clear_resource_cooldowns
Can be triggered to clear all cooldowns for a specific resource.
Last updated