RedM documentation

Murphy's Doctor

Configuration

Help call


This page covers shared/config_helpcall.lua: how a hurt player calls for a doctor, who receives the call, the search area drawn on the doctor's map and the call board where doctors take calls.

How it works

  • A player in a coma calls for help from the coma screen, with a predefined reason or their own words (120 characters at most). The call can also be sent automatically on entering a coma (AutoCallOnComa) or with a key (Keybind).
  • The server looks for doctors within NotificationRadius of the patient. With Config.Duty.GateServices = true, only doctors on duty count (see Duty).
  • The doctor never gets the exact position: a search area of SearchAreaRadius is drawn on the map, its centre moved up to SearchAreaOffset metres away from the patient, so the patient is somewhere inside, not in the middle. It stays on the map for BlipDuration seconds.
  • When a doctor takes the call, the patient is told a doctor is on the way and who is coming.
  • A player can call again only after CallCooldown seconds. A new call from the same player replaces the previous one.

When a patient in a coma sends a call without a reason, the reason is filled in from the cause of the coma (gunshot, animal attack, fall...) with PredefinedReasons.

Modes

Mode Behaviour
"sequential" The closest doctor is asked first. They accept or decline within ResponseTimeout seconds; on decline or timeout the next closest doctor is asked, and so on. When nobody is left, the patient is told no doctor answered and the call waits on the board.
"broadcast" Every doctor within the radius is notified at once.

The quick "cry for help" of the coma screen is always sent in broadcast mode.

Settings

Key Default Description
Config.HelpCall.Mode "sequential" "sequential" or "broadcast", see above.
Config.HelpCall.NotificationRadius 500.0 Metres around the patient to find doctors.
Config.HelpCall.SearchAreaRadius 40.0 Metres, radius of the search area drawn on the map. 20 to 50 stays readable.
Config.HelpCall.SearchAreaOffset 20.0 Metres. Largest random shift of the area's centre away from the patient.
Config.HelpCall.ResponseTimeout 60 Seconds a doctor has to answer in sequential mode.
Config.HelpCall.CallCooldown 120 Seconds between two calls from the same player.
Config.HelpCall.BlipDuration 300 Seconds the search area stays on the doctor's map.
Config.HelpCall.BlipSprite -924021303 Icon of the search area blip (medical alert).
Config.HelpCall.RadiusStyle -666422021 Style of the search circle. Alternatives: 1673015813, 1247852480 (red).
Config.HelpCall.AutoCallOnComa false true = a call is sent automatically when a player enters a coma.
Config.HelpCall.AutoCallDelay 30 Seconds after the coma starts before the automatic call.
Config.HelpCall.Keybind nil Control hash that sends a call. nil = no key (calls stay available from the coma screen). See the key list in shared/config.lua and General.

Call board

The call board lists every call in progress for the doctors on duty (all doctors when Config.Duty.GateServices = false). A doctor can take a call (a route is traced to the search area and the patient is told who is coming), give it up or close it. Other doctors see who took it. The board works with both modes.

Key Default Description
Config.HelpCall.Board.Enabled true Enables the call board. When false, a call nobody answered is dropped.
Config.HelpCall.Board.Command "calls" Command that opens the board. nil = no command (the OpenCallBoard client export still works).
Config.HelpCall.Board.Expiry 900 Seconds a call stays on the board.
Config.HelpCall.Board.CloseOnRevive true A call sent from a coma closes when the patient comes out of it.

A call also closes when the patient disconnects. If the doctor who took a call disconnects, the call goes back to the board.

Predefined reasons

Config.HelpCall.PredefinedReasons is the list of reason buttons of the coma screen. Each entry:

Field Description
id Reason id. Its text is help.reasons.<id> in shared/locales/<lang>.lua.
causes Coma causes that pick this reason automatically when the patient gave none.
label Optional text override, instead of the locale.

Shipped reasons:

id Causes
gunshots shot, headshot
animal animal
fall fall, fall_minor
fight beaten, stabbed, slashed
fire burned, explosion
drowning drowned
illness poisoned, unknown
lua
table.insert(Config.HelpCall.PredefinedReasons, { id = "horse", causes = {}, label = "Thrown by my horse" })

Labels

Config.HelpCall.Labels holds optional text overrides. Empty = the texts of shared/locales/<lang>.lua (help.*). Keys: callSent, noDoctor, alreadyCalling, callReceived, callAccepted, callDeclined, patientFound, searchArea, doctorOnTheWay. The callTimeout key is listed in the file but not used by this version.

Related: Coma · Duty · Dispensaries · Notifications · Client exports


Last updated: November 20, 2026