Standalone cooldown system with options for both player-specific and global actions. It provides an efficient way to track and enforce cooldowns for various gameplay mechanics, ensuring consistent behaviour across different frameworks or custom implementations.
Client Functions
check_cooldown
Used to check if something is on cooldown from the client.
--- Define the typelocal cooldown_type ='action_type'--- Specify if cooldown is globallocal is_global =false--- Utils objectutils.cooldowns.check(cooldown_type, is_global, function(is_on_cooldown)if is_on_cooldown thenprint('Player-specific action is currently on cooldown.')elseprint('Player-specific action is available.')endend)--- Direct exportexports.boii_utils:check_cooldown(...)