Police, EMS and emergency calls
Three resources that work together, each one replaceable. Their places (station, hospital, prison) and lists (fines, weapons, vehicles, uniforms) are in their shared/config.lua; their texts in locales/.
rlx_police
F6 on duty (the core checks job, duty and distance again):
| Action | What it does |
|---|---|
| Cuff / uncuff | Both players play the paired arrest animation together (LS:MP synchronized scene, cuffScene), then: no weapon, no sprint, no getting into a vehicle. The player state police:cuffed is true for every resource (RLX.GetPlayerState(id, "police:cuffed")). |
| Escort | The cuffed (or unconscious) person is held next to the officer; again: let go. |
| Put in / take out of the vehicle | The back seats of the closest vehicle (server setter). |
| Search | Money, dirty money, weapons and items of the person, to seize. Without cuffs, the person must accept (searchNeedsConsent). |
| Fine | A list from the config or another amount: a bill of rlx_billing for the company, or taken from the bank without it. |
| Send to jail | Minutes and reason (jail.minGrade). The time left is written on the character every 5 s and when they leave (rlx:playerUnloading): a prisoner who reconnects goes back with the time they had left. Leaving the prison area brings them back within seconds. The time left is shown at the top of the screen. |
| Check ID · Licenses | The ID card with the portrait; the licenses, to withdraw one. |
| Vehicle info · Unlock | Plate, model, owner; force the lock. |
| Road objects | Cones and barriers placed in game (RLX.PlaceObject), kept for everyone (RLX.AddProp), taken back the same way. |
Also: cloakroom (duty, uniform set by the server with RLX.SetOutfit, civilian clothes), armory (weapons by grade, vest, give back, the company stash), job vehicles (with keys), and gunshot alerts: a civilian who shoots alerts the police with an area on the map (shots). Staff commands: /jail <player> <minutes> [reason], /unjail <player> (rlx.command.jail, rlx.command.unjail). API: lsmp.call("rlx_police:isCuffed" | ":jail" | ":unjail" | ":jailTime", source, ...); events rlx_police:cuffed, rlx_police:jailed, rlx_police:released.
rlx_ambulance
- Unconscious: the death screen says [H] Call for help (the
distressaction): the paramedics on duty get an alert with the place. While at least one paramedic is on duty, the respawn waitsrespawnWithEmsseconds (300) instead of the usual delay (RLX.SetRespawnDelay). - F6 on duty: revive (CPR, uses a
medikit, rewardreviveReward), treat a light injury (bandage) or a serious one (medikit), diagnose (unconscious for how long, or health in %), put in / take out of a vehicle. - Cloakroom, pharmacy (free medikits and bandages, up to a maximum), job vehicles, hospital reception: anyone pays to be treated when no paramedic is on duty (
checkIn). - API:
lsmp.call("rlx_ambulance:onDuty"); eventsrlx_ambulance:revived(medic, patient),rlx_ambulance:distress(source, alert id).
rlx_dispatch
- Citizens:
/911 <message>(police),/ems <message>(EMS) — the list isDispatchConfig.commands. - The units on duty get a card that slides in on their screen (code, title, message, street, distance, keys), a sound, and on the map a flashing blip inside a pulsing circle (an area for approximate alerts like gunshots) for
durationseconds; a unit coming on duty receives the calls in progress. Colors, card time and blips:DispatchConfig.card,colors,blip. F6 > Calls: take the call (GPS, the caller is told, the others see who took it), GPS only, close it. J (thedispatchLastaction): GPS to the last call. - Any server resource sends alerts:
lsmp.call("rlx_dispatch:send", { job, title, text, coords, caller, code, icon, sprite, color, radius, duration })(icon:police,ems,shots,alert) → id;:list,:close; eventsrlx_dispatch:alert,:taken,:closed.