xT Docs
  • 📘Welcome
  • 🆓Free Resources
    • ⛓️Prison
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🚶Walking Styles
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🔧Repairs
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⏱️Duty Menu
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🅿️Meter Robbery
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 👮PD Extras
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 📃Forgery
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⌛Cooldowns
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🎄Christmas
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
  • 🛒Paid Resources
    • 🕴️Blackmarkets
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⚒️Crafting
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🖥️Cryptomining
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🪦Gravedigging
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🐶Pets
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • ⛓️Prison Jobs
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 👿Slasher Minigame
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 💨Slash Tires
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 📦Storage
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
    • 🧟Zombies
      • 📝Features
      • ✅Dependencies
      • 🔌Installation & Usage
  • 🐎RedM Links
    • 🔎Natives, Discoveries, Etc
    • 🗺️Maps
    • ⚒️Developer Tools
    • 🧍Ped Models
    • 📍Blips
Powered by GitBook
On this page
  1. Free Resources
  2. Cooldowns

Features

  • Create cooldowns for any activities in your server

  • Check if cooldowns are active using simple a callback

  • Toggle cooldowns using a simple a callback

    • Cooldowns will disable automatically, allowing the activity to be usable again

  • Global cooldown used to enable/disable ALL activties using the cooldown callbacks

  • Grace period feature

    • Some servers have grace periods when the server starts up or is about to shutdown. Global cooldowns will auto enable/disable when the server starts and before it restarts for the lenght of time you set your grace period to be.

    • Ex: If 15 mins, all activites are diabled for 15 mins when the server starts up or is about to shut down

  • Admin menu for cooldowns

    • Create new cooldowns (obviously not used unless the callback is implemented in the code to check that cooldown)

    • Toggle cooldowns

    • Toggle global cooldown

    • Change cooldown lengths (length edits save to the database when the server restarts)

  • Discord Logs

    • New cooldown created

    • Cooldown toggled

    • Cooldown length changed

PreviousCooldownsNextDependencies

Last updated 1 year ago

🆓
⌛
📝