LockwireRedeem a key
All mods

Dispatch Alerts

by jokerxtd · version 1.0.0

Police (or any job) alerts with no dispatch resource needed. The server picks who gets the alert by job and duty on Qbox, QBCore or ESX, and each receiver gets a notification with the street name, a sound, and a flashing blip with a radius that fades out.

What you get

Send Dispatch Alert

server lane

Sends an alert to every player whose job is in Jobs (on duty only, if set). The location is the player's own position unless Coords is wired. Each player can trigger one alert per cooldown, so a cheater can't spam the police.

Inputs
In, Player, Coords
Outputs
Sent
Settings
Code, Title, Message, Jobs, On duty only, Blip sprite, Blip colour, Radius (m), Blip lasts (seconds), Cooldown per player (seconds)

On Dispatch Alert

client lane

Shows the alerts from Send Dispatch Alert: a notification with the street name, a sound and a flashing blip. Put one in the client lane of the same resource; only players the server picked receive anything.

Inputs
none
Outputs
Received, Coords
Settings
Play a sound, Notification time (ms), Set a waypoint