xcs-priority — A clean, modern police priority & cooldown system for QBCore.
A complete rewrite focused on a polished UI, smooth UX, and optimized performance. Officers can quickly set the city's priority state and start custom-duration cooldowns directly from a sleek tabbed interface.
Features
- Sleek left-side HUD showing the current priority state and a live cooldown countdown
- Tabbed menu — switch between States and Cooldown configuration
- Custom cooldown duration with slider, +/− buttons, and quick-pick presets
- Automatic state transition — when the cooldown ends, the city automatically switches to City Safe (configurable)
- Server-authoritative timer, broadcast in real time to every officer
- Job & on-duty checks with server-side validation (no client-trusted state)
- Fully configurable: jobs, priority types, colors, icons, durations, and transitions
- 0.00 ms resmon — NUI only updates when state actually changes
- Pure CSS + vanilla JS — no jQuery, no Bootstrap, no bloat
Dependencies
- qb-core
Default States Inactive · City Safe · On Hold · In Progress · Police Meeting · Cooldown
