RedM documentation
Murphy's Doctor
Configuration
Records, archives and autopsy
This page covers the paperwork side of the doctor: the medical archives (Config.Archives in shared/config_dispensary.lua), the patient's medical file (Config.Records in shared/config_records.lua), autopsies and death certificates (Config.Autopsy, same file) and the incident records shared with the law (Config.Incidents in shared/config_incidents.lua).
Medical archives
Every signed treatment report is stored in the archives. Doctors open them at the archive point of a dispensary (archiveCoords of Config.Dispensaries, see Dispensaries). Staff can open the archives of all dispensaries with doc_archives (Commands).
| Key | Default | Description |
|---|---|---|
Config.Archives.SharedArchives |
true |
true: every dispensary sees every report. false: a doctor only sees the reports of their own dispensary (and reports with no dispensary). Staff always see everything. Also applies to the report history of the medical file. |
Config.Archives.OpenDistance |
3.0 |
Metres. Distance at which the archive prompt appears. |
Config.Archives.PromptType |
nil |
Prompt backend of the archive point: "auto", "murphy_interact" or "native". nil inherits Config.Dispensary.PromptType. |
Config.Archives.MaxResultsPerPage |
50 |
Patients per page in the archive list. The search matches patient and doctor names. Accepted values are 1 to 100; a value under 1 falls back to 50 (there is no "unlimited" setting). |
The duty clock and the treasury use the same archive point, see Duty and Nurse.
Medical file
The "Medical file" tab of a report in the archives. Doctors write the blood type, allergies, chronic conditions and notes. The file also shows, from the health data: diseases, vaccines and immunities, liver wear, addictions, the death certificate if there is one, and the history of the patient's reports.
| Key | Default | Description |
|---|---|---|
Config.Records.Enabled |
true |
false removes the medical file (the archives still work). |
Config.Records.HistoryRows |
40 |
Number of past reports listed in the file's history. Kept between 5 and 100. |
The doctor-written part is stored in the murphy_doctor_records table, created automatically (Database).
Autopsy and death certificates
A doctor examines a dead body, then writes a death certificate: cause, weapon, fatal wound, estimated time of death, place, plus the deceased's name and the doctor's notes. The certificate goes into the dispensary's archives, and into the deceased's medical file when it is a player.
- Dead NPCs (human): the doctor holds the prompt key next to the body.
- Players in a coma: "Autopsy" in the doctor's actions on the patient.
The time of death is estimated from how long the body has lain there: seen dying, the time is exact; found dead, it is "at the latest". Past MaxEstimateMinutes, the certificate only says "more than ... ago".
| Key | Default | Description |
|---|---|---|
Config.Autopsy.Enabled |
true |
Master switch. |
Config.Autopsy.Npcs |
true |
Allows autopsies of dead human NPCs. |
Config.Autopsy.Players |
true |
Allows autopsies of players in a coma, from the doctor's actions. |
Config.Autopsy.Distance |
1.8 |
Metres to the body for the prompt. |
Config.Autopsy.Seconds |
8 |
Seconds the examination takes (the doctor kneels over the body). |
Config.Autopsy.Key |
0xCEFD9220 (E) |
Key held next to a dead NPC. |
Config.Autopsy.PlayerKey |
0xD8F73058 (U) |
Native prompt key of the autopsy action on a player in a coma. Config.Interactions.NativeKeys.Autopsy overrides it. |
Config.Autopsy.MaxEstimateMinutes |
240 |
Real minutes. Past this, the time of death is no longer estimated precisely. |
Config.Autopsy.Command |
"certificates" |
Chat command listing the last death certificates: /certificates [name or server id]. "" or nil disables the command. |
Config.Autopsy.MaxRows |
15 |
Certificates listed by the command. Kept between 1 and 100. |
Config.Autopsy.LawJobs |
nil |
Law jobs allowed to read the certificates. nil uses Config.Incidents.LawJobs. |
The certificate is stored in the murphy_doctor_certificates table, created automatically. Other resources can read it with the server export GetDeathCertificates (Server exports).
Incident records
Every coma is recorded: victim, cause, weapon, attacker (a player or an NPC, as seen by the victim's client), place and time. The place is the label of the nearest epidemic zone the victim was in (Config.Epidemics.Zones, see Epidemics), otherwise "wilderness".
| Key | Default | Description |
|---|---|---|
Config.Incidents.Enabled |
true |
false: nothing is recorded, the command and the export are not registered. |
Config.Incidents.KeepDays |
30 |
Days. Older records are deleted at each resource start. 0 keeps them forever. |
Config.Incidents.Command |
"incidents" |
Chat command: /incidents [first name / last name / server id]. Without an argument, the latest records. "" or nil disables the command. |
Config.Incidents.LawJobs |
see below | Framework jobs allowed to read the records. Doctors and staff always can. The job name must match exactly. |
Config.Incidents.MaxRows |
15 |
Records listed by the command. Kept between 1 and 100. |
Config.Incidents.MaxAttackerDistance |
150.0 |
Metres. The declared attacker is kept only if that player is connected and within this distance of the victim. Otherwise the record has no attacker. |
Shipped law jobs, covering the usual jobs of REDEM:RP, VORP (vorp_police) and RSG:
Records are stored in the murphy_doctor_incidents table, created automatically. Other resources read them with the server export GetIncidents({ victim = charid, attacker = charid, limit = 20 }) (Server exports).
Who can read what
| Data | Doctors | Staff (Config.AdminGroups) |
Law jobs | Server console |
|---|---|---|---|---|
| Archives and medical files | yes (own dispensary only when SharedArchives = false) |
yes, all | no | - |
/certificates |
yes | yes | Config.Autopsy.LawJobs or Config.Incidents.LawJobs |
yes |
/incidents |
yes | yes | Config.Incidents.LawJobs |
yes |
Last updated: November 20, 2026