Configuration
nfiguration for a priority system
Internal Settings (Should not be changed):
Config.CurrentCooldown
: Tracks the current cooldown time (in minutes).Config.CurrentType
: Keeps track of the current priority type (e.g., "ON HOLD", "IN PROGRESS").
Maximum Cooldown Time:
Config.MaxCooldown
: Defines the maximum cooldown time for the priority system (in minutes). For example, if the system is on cooldown, it can last up to 60 minutes.
Command Trigger:
Config.command
: The command that players will use to interact with the priority system. In this case, the command ispriority
.
Default Message:
Config.DefaultText
: The message displayed when the priority system is off or inactive. For example, "PRIORITY SYSTEM IS OFF".
Police Rank Requirement:
Config.PoliceGrade
: Defines the minimum police rank required to use the priority system. In this case,0
would mean the lowest rank, but you can change it based on the server's rank system.
Priority Types:
Config.Types
: This defines different priority types, each with a label and a color. For example:"COOLDOWN"
has the label "COOLDOWN" and is shown in yellow (rgba(241, 203, 27, 0.7)
)."ON HOLD"
is shown in red (rgba(241, 27, 31, 0.7)
), and so on.
You can add more types if needed by following the same structure (label and color).
This script sets up a priority system for specific actions, which can be toggled on or off, with different statuses displayed for each situation (e.g., "IN PROGRESS", "EMERGENCY"). You can add more types as required by the server's functionality.
Last updated