luckyscripts.DOCUMENTATION
LuckyScripts / Pulsar DispatchFIVEM FIELD GUIDE

Configuration & customization

Configuration & customization guide for LuckyScripts Pulsar Dispatch.

All configuration lives in three files:

FilePurpose
shared/config.luaJobs, dispatch settings, alert thresholds, map settings
shared/types.luaStatus codes, job dot colors (live config, no rebuild)
shared/events.luaEvent name registry

Key Config Options

-- Jobs that can access the dispatch panel
Config.Jobs.allowedJobs = { 'police', 'sheriff' }

-- Require clocked-in duty status
Config.Jobs.requireDuty = false

-- Dispatch auto-expiry (5 minutes default)
Config.Dispatch.dispatchLifetime = 300000  -- ms

-- Maximum solved/expired dispatches kept in RAM
Config.Dispatch.maxHistoricalDispatches = 100

-- Unit location update interval
Config.Map.updateInterval = 5000  -- ms

-- Debug mode (F8 console logging)
Config.UI.debug = true

Alert Configuration

Each alert type has its own section with these parameters:

  • enabled — toggle on/off
  • code / codeLabel — 10-code displayed in UI
  • priority — 1 (critical) to 5 (info)
  • throttle — minimum interval between alerts from the same player (ms)
  • detector — game event listener or native polling configuration
  • descriptionTemplate — story-driven alert text with {placeholders}

Customization

Status Codes (shared/types.lua)

Add, remove, or rename status codes freely. The UI dropdown reads this table when the panel opens.

StatusCodes = {
    ['10-8']    = { label = 'Available',    category = 'available', color = 'green'  },
    ['10-6']    = { label = 'Busy',         category = 'busy',      color = 'yellow' },
    ['CODE 99'] = { label = 'Emergency',    category = 'emergency', color = 'red', animation = 'pulse' },
    -- Add your own:
    ['10-99']   = { label = 'Coffee Break', category = 'busy',      color = 'purple' },
}

Job Dot Colors (shared/types.lua)

Customize the CircleMarker dot for each job on the dispatch map.

JobDotColors = {
    police    = { fill = "#1e3a5f", stroke = "#162d4a", radius = 6 },
    sheriff   = { fill = "#3f1e0a", stroke = "#2a1508", radius = 6 },
    ambulance = { fill = "#1e3a1e", stroke = "#162a16", radius = 6 },
    mechanic  = { fill = "#5a3a1e", stroke = "#3a2814", radius = 6 },
}

LuckyScripts Pulsar Dispatch · Match configuration examples to your downloaded release.
Need a hand? Read the support guide ↗

On this page