πŸ›œExports

circle-exclamation

HasCooldown

Checks if a player is currently on cooldown (e.g., cannot change job or perform specific actions).

exports['mg-jobCenter']:HasCooldown(identifier)

πŸ“Œ Parameters:

πŸ”Ήidentifier β†’ Unique player identifier (qb-core = citizenid | esx = ).

πŸ“Œ Returns:

πŸ”Ήboolean β†’ true if the player is on cooldown, false otherwise

GetCooldownRemaining

Gets the remaining cooldown time in seconds.

exports['mg-jobCenter']:GetCooldownRemaining(identifier)

πŸ“Œ Parameters:

πŸ”Ήidentifier β†’ Unique player identifier (qb-core = citizenid | esx = ).

πŸ“Œ Returns:

πŸ”Ήnumber β†’ Seconds remaining on cooldown. Returns 0 if no cooldown is active.

SetPlayerCooldown

Sets/activates a cooldown for a player using the configured cooldown duration (Config.CooldownHours).

RemovePlayerCooldown

Removes a player's cooldown, allowing immediate job change or action.

πŸ“Œ Parameters:

πŸ”Ήidentifier β†’ Unique player identifier (qb-core = citizenid | esx = ).

Last updated