Skip to content

Replace a partThe bundled resources

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):

ActionWhat it does
Cuff / uncuffBoth 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")).
EscortThe cuffed (or unconscious) person is held next to the officer; again: let go.
Put in / take out of the vehicleThe back seats of the closest vehicle (server setter).
SearchMoney, dirty money, weapons and items of the person, to seize. Without cuffs, the person must accept (searchNeedsConsent).
FineA list from the config or another amount: a bill of rlx_billing for the company, or taken from the bank without it.
Send to jailMinutes 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 · LicensesThe ID card with the portrait; the licenses, to withdraw one.
Vehicle info · UnlockPlate, model, owner; force the lock.
Road objectsCones 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 distress action): the paramedics on duty get an alert with the place. While at least one paramedic is on duty, the respawn waits respawnWithEms seconds (300) instead of the usual delay (RLX.SetRespawnDelay).
  • F6 on duty: revive (CPR, uses a medikit, reward reviveReward), 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"); events rlx_ambulance:revived (medic, patient), rlx_ambulance:distress (source, alert id).

rlx_dispatch ​

  • Citizens: /911 <message> (police), /ems <message> (EMS) — the list is DispatchConfig.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 duration seconds; 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 (the dispatchLast action): 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; events rlx_dispatch:alert, :taken, :closed.