Service features
What the Patrolink PL-3T adds on FiveM for police and EMS: an emergency button, 10-codes to dispatch, private unit-to-unit calls and callsigns.
Service jobs
The features on this page belong to the PL-3T and depend on the jobs you list in Config.ServiceJobs. control is the dispatch name passed to the integration hooks (your dispatch will see it):
Config.ServiceJobs = {
police = { control = 'LSPD' },
ambulance = { control = 'EMS' },
}
A player counts as "on duty" when they have one of those jobs and are on duty in your framework.
Emergency button
It's the yellow cap on the PL-3T's left knob.
| Who presses it | What happens |
|---|---|
| On-duty service player | Config.Hooks.ServicePanic runs on their client (officer-in-distress alert to your dispatch). |
| Anyone else (a civilian with a stolen PL-3T, an off-duty officer…) | Config.Hooks.OnCivilianEmergency runs on the server, with the location and coordinates. |
Either way, everyone on the same channel (or in the same private call) gets an EMERGENCY alert with the name of whoever pressed it. Coordinates always come from the server, never from the client.
- Pressing it again clears the alert from your screen.
- There's a 60 s cooldown between emergencies (
Config.Cooldowns.emergency).
Important
Config.Hooks.ServicePanic and Config.Hooks.OnCivilianEmergency ship empty: the alert plays on the channel, but it doesn't reach any dispatch until you connect them to yours. They live in config/hooks.lua, with a commented ps-dispatch example. See Integration.
10-codes
On-duty service players with a PL-3T turned on only.
- Open Menu → 10-code to dispatch.
- Dial the number (for example
97) and press#. - The screen confirms
10-97 SENT.
The code reaches everyone else on the channel and Config.Hooks.OnTenCode on the server (for your dispatch or logs). 4 s cooldown between codes.
Codes with a description by default (Config.TenCodes, texts in locales/*.json → tencodes):
| Code | Meaning |
|---|---|
| 10-4 | Acknowledged |
| 10-6 | Busy |
| 10-7 | Out of service |
| 10-8 | In service |
| 10-9 | Repeat |
| 10-10 | End of patrol |
| 10-15 | Suspect in custody |
| 10-20 | Location |
| 10-23 | Arriving on scene |
| 10-32 | Backup needed |
| 10-41 | Beginning patrol |
| 10-50 | Traffic accident |
| 10-52 | Ambulance needed |
| 10-97 | On scene |
| 10-98 | Available |
Any other number is still sent, just without a description. To add one, put it in Config.TenCodes and its text in every file in locales/.
Private call
A PL-3T to PL-3T conversation only the two of you hear, on a reserved channel (Config.PrivateCalls).
Unit codes
Every on-duty service player gets a 3-digit code (starting at 101) the first time they show up in the session, and keeps it until the restart. It's shown on the private call screen: YOUR CODE 101 · ADAM-10.
- With callsigns: if you define
Config.Hooks.GetCallsigninconfig/hooks.lua, the unit is their callsign (for exampleADAM-10), and the callsign also shows on the HUD. The value must come from a server-trusted source (your MDT, player metadata…), never from a state bag the client can write. Example in Integration. - Without callsigns (default): the unit is the character's name in capitals.
Players without a service job, or off duty, see NO UNIT ASSIGNED.
Calling and answering
| Step | How |
|---|---|
| Call | Menu → Private call, dial the unit's 3 digits and press #. |
| Redial | On the call screen, # with nothing dialled calls the last unit again. |
| Answer | # while it rings. If your radio is put away you get a notification: open the radio and press #. |
| Decline or hang up | Back. |
- It rings for 20 s; if nobody answers you get NO ANSWER.
- To receive calls you have to be on duty with your PL-3T turned on. If several players share a callsign, it rings for all of them.
- During the call, PTT talks into the call, not the dial channel.
- 5 s cooldown between calls.
The channel range used by calls (channelBase + 1 … channelBase + channelCount, 6000001–6000200 by default) must not be used by any other script.