LuckyScripts / Pulsar DispatchFIVEM FIELD GUIDE
Configuration & customization
Configuration & customization guide for LuckyScripts Pulsar Dispatch.
All configuration lives in three files:
| File | Purpose |
|---|---|
shared/config.lua | Jobs, dispatch settings, alert thresholds, map settings |
shared/types.lua | Status codes, job dot colors (live config, no rebuild) |
shared/events.lua | Event 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 = trueAlert Configuration
Each alert type has its own section with these parameters:
enabled— toggle on/offcode/codeLabel— 10-code displayed in UIpriority— 1 (critical) to 5 (info)throttle— minimum interval between alerts from the same player (ms)detector— game event listener or native polling configurationdescriptionTemplate— 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 ↗