⚙️Configuration

Overview

The Priority Cooldowns system is configured entirely through the config.lua file. This guide covers all available configuration options in detail.

Core Settings

Log Category

Define the logging category for Discord notifications:

PrioCD.LogCategory = 'priocd'

This category should be configured in your TMC Framework logging system to receive notifications when cooldowns are activated or cleared.

Allowed Jobs

Specify which jobs can manage priority cooldowns:

PrioCD.AllowedJobs = {
    'police',
    'medical',
    'ambulance'
}

Configuration Options:

  • Add Jobs - Include any job name from your jobs configuration

  • Remove Jobs - Delete jobs that shouldn't have access

  • Multiple Departments - Add as many jobs as needed

Important: Players must be on duty with one of these jobs to use the cooldown system.

Activation Methods

The script supports two activation methods that can be enabled independently or together.

Command Activation

Enable or disable command-based cooldown management:

Configuration Options:

  • Enabled - true to enable commands, false to disable

  • SetCMD - Customize the command name for setting cooldowns

  • ClearCMD - Customize the command name for clearing cooldowns

Usage Examples:

Custom Command Names:

Radial Menu Activation

Enable radial menu integration for easy access:

Configuration Options:

  • Enabled - true to enable radial menu integration

  • Id - Unique identifier for the menu (should remain unchanged)

  • Title - Text displayed in the radial menu

  • Icon - FontAwesome icon name (without 'fa-' prefix)

  • IconCategory - Icon style: 'solid', 'duotone', 'regular', etc.

Customization Example:

Cooldown Options

Define the available cooldown presets that users can select.

Standard Cooldown Structure

Each cooldown follows this structure:

Clear Priority Option

Special option to remove active cooldowns:

Timed Cooldown Options

Pre-configured time-based cooldowns:

Unlimited Duration Cooldown

Cooldown with no automatic expiry:

Adding Custom Cooldowns

You can add as many custom cooldown options as needed:

Key Configuration Tips:

  • Enabled - Set to false to hide a cooldown option without deleting it

  • Timer - Value in minutes; set to false for unlimited duration

  • Type - Must match a key in PrioCD.Types configuration

Cooldown Types

Define how different cooldown types appear to players in the UI.

Type Structure

Standard Type

Default cooldown type for general incidents:

Meeting Type

Specialized type for police meetings:

Creating Custom Types

Add new cooldown types for different scenarios:

Color Customization Tips:

  • Use hex color codes (e.g., #E14141)

  • Choose contrasting text colors for readability

  • Common colors:

    • Red: #E14141 (urgent/danger)

    • Orange: #FF6B35 (warning)

    • Blue: #4A90E2 (informational)

    • Green: #28A745 (positive/event)

    • Yellow: #FFC107 (caution)

    • Gray: #6C757D (neutral/maintenance)

Icon Configuration

The script uses FontAwesome icons for visual elements.

Available Icon Styles

  • solid - Filled icons

  • regular - Outlined icons

  • duotone - Two-tone icons (if supported)

  • light - Light-weight icons (if supported)

  • brands - Brand logos

Common Icon Examples

Icon Configuration Example

Advanced Configuration

Complete Configuration Example

Here's a full example with multiple custom options:

Configuration Best Practices

  1. Enable What You Need - Disable unused cooldown options to keep menus clean

  2. Logical Durations - Choose timer durations that make sense (5, 10, 15, 30, 60 minutes)

  3. Clear Naming - Use descriptive titles that players instantly understand

  4. Consistent Types - Match cooldown types to their intended purpose

  5. Visual Distinction - Use different colors for different cooldown types

  6. Icon Selection - Choose icons that represent the cooldown type clearly

Disabling Features

To disable specific features without removing configuration:

Integration Configuration

When integrating with other scripts, you may want to adjust logging or add custom types:

Custom Log Categories

For different departments or purposes:

Department-Specific Configurations

Create separate configurations for different departments:

Next Steps

After configuring your priority cooldown system, check out the FAQ for common questions and troubleshooting tips, or return to Installation for setup instructions.

Last updated