Documentation
TebexDiscordYouTubeGitHub
  • Introduction
  • FIVEM FREE RESOURCES
    • BDTK
      • Guides
      • API
        • Bridges
          • Framework
          • Notifications
          • DrawText UI
        • Modules
          • Appearance
          • Buckets
          • Callbacks
          • Commands
          • Cooldowns
          • Debugging
          • Entities
          • Environment
          • Geometry
    • BDSC
      • Guides
        • What Are Plugins?
        • Making Your First Plugin
      • API
        • Player
        • Manager
        • Utility
    • boii_utils
      • Installation
      • Configuration
      • Modules
      • API
        • Callbacks
        • Characters
        • Commands
        • Cooldowns
        • Debugging
        • Entities
        • Environment
        • Framework Bridge
        • Geometry
        • Items
        • Keys
        • Licences
        • Maths
        • Methods
        • Player
        • Requests
        • Strings
        • Tables
        • Timestamps
        • UI Bridges
        • Vehicles
        • Version
        • XP
        • UI Elements
  • FIVEM PAID RESOURCES
    • Page 2
Powered by GitBook
On this page
  • add_cooldown
  • check_cooldown
  • clear_cooldown
  • clear_expired_cooldowns
  • clear_resource_cooldowns
  1. FIVEM FREE RESOURCES
  2. BDTK
  3. API
  4. Modules

Cooldowns

SERVER FUNCTIONS

add_cooldown

Adds a cooldown for a player or globally.

Parameters

  • source: number

  • cooldown_type: string

  • duration: number

  • is_global: boolean

bdtk.add_cooldown(source, cooldown_type, duration, is_global)

check_cooldown

Checks if a cooldown is active.

Parameters

  • source: number

  • cooldown_type: string

  • is_global: boolean

Returns

  • boolean

bdtk.check_cooldown(source, cooldown_type, is_global)

clear_cooldown

Clears a specific cooldown.

Parameters

  • source: number

  • cooldown_type: string

  • is_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)
PreviousCommandsNextDebugging

Last updated 13 hours ago