RedM documentation

Murphy's Doctor

Guides

Staff guide


For server owners and admins running murphy_doctor 1.0.1: who counts as staff, the admin commands, debug mode, setting up dispensaries, reading the logs and keeping the system fair. Installation itself is covered in Installation; every command is listed in Commands and keybinds.

Contents

Who is staff

Staff commands accept the server console and any player whose group is in Config.AdminGroups (shared/config.lua, default { "admin", "superadmin" }). How the group is read:

Framework Group checked
REDEM:RP the player's group
VORP the account group (users.group, where VORP keeps the staff rank), then the character group
RSG-Core an RSG permission named in Config.AdminGroups (god and admin are always probed), or the command ACE that a stock RSG server.cfg grants to admins

On RSG, if your staff only hold god, add "god" to Config.AdminGroups.

Some commands are also registered as restricted (marked ACE in Commands and keybinds): in game, the player needs the command.<name> ACE (or the global command ACE) on top of the group. From the console they always work. If a staff command does nothing in game, run it from the console to rule out permissions.

doc_selftest <serverId> shows how the server sees a player: its last line says doctor: true/false, staff: true/false.

First steps after installing

  1. Start the server and run doc_selftest in the console. Fix every [FAIL] line and read the [WARN] ones (Troubleshooting).

  2. With the default doctor detection ("database"), nobody is a doctor yet. Seat a chief for each dispensary you open:

    doc_addchief <serverId> <dispensaryId>
    

    dispensaryId is the id in Config.Dispensaries (1 Saint Denis, 2 Blackwater, 3 Rhodes, 4 Strawberry, 5 Valentine by default). The chief then recruits the others at the board.

  3. Check that your inventory holds the doctor's items (medications, concentrestimulant, bandage, ether, stretcher, the bench ingredients). The seeds are in install/ (Items).

  4. Make sure no other death or medic script runs alongside (see Working with other scripts).

Health and coma commands

Command Use it when
doc_healall Everyone must be put back on their feet (after an event, a bug, a mass incident). Revives every coma and fully heals every connected player: health, hunger, thirst, temperature, injuries, bleeding, poison. Diseases and immunities are kept.
doc_reloadhealth <serverId> You edited a player's row in murphy_doctor_health by hand (support, refund). Drops the cached data and reloads it from the database.
doc_selftest [serverId] Installation check, and a player's live state: character, health, injuries, diseases, doctor and staff flags, coma.

There is no single-player heal or revive command: use doc_healall, or have a doctor revive. Scripts can revive a player properly through the export described in Keeping it fair.

Diseases, epidemics and addictions

Diseases (/doc:disease, in game or from the console with a server id):

text
/doc:disease list the grimoire ids
/doc:disease apply <id> [serverId] give a disease (the target only feels unwell)
/doc:disease cure <id> [serverId] remove one
/doc:disease clear [serverId] remove all
/doc:disease show [serverId] active diseases and the symptoms the target feels

Disease ids: grippe, pneumonie, tuberculose, typhoide, fievre_jaune, cholera, paludisme, sepsis, tetanos, dysentery, rage, scorbut, intox_alcool, morsure_serpent, variole, syphilis, dehydration, cirrhosis (Medical reference). Scurvy, dehydration, yellow fever, malaria and syphilis have no natural cause by default: they exist for your stories.

Infection tests and immunities:

text
/doc:infect:test <id> [serverId] infect through the natural path (refused if immune or already sick)
/doc:infect:immunize <id> [serverId] [days] grant an immunity (30 days by default)
/doc:infect:status [serverId] diseases and immunities

Epidemics (console or staff):

text
doc_epidemic start <outbreak> <zone> [hours] e.g. doc_epidemic start cholera saintdenis 12
doc_epidemic stop <id|all>
doc_epidemic list
doc_epidemic tick [force] one exposure pass now; force infects everyone who can be

Outbreaks: grippe, cholera, dysentery. Zones: saintdenis, valentine, blackwater, rhodes, strawberry, annesburg, vanhorn. Doctors are warned at the start and when they log in. Random outbreaks are off by default (Config.Epidemics.AutoStart). See Epidemics.

Addictions:

text
doc_addiction <serverId> <alcohol|tobacco|opiates> <level 0-100> [minutesSinceLastUse]

Set a level of 0 to clear a dependence. Use minutesSinceLastUse to start withdrawal at once.

Temperature commands

Command Effect
/doc:settemp <temperature> sets your own body temperature
/doc:tempsim <scenario> applies a scenario and freezes it: cold_mild, cold_moderate, cold_severe, cold_extreme, hot_mild, hot_moderate, hot_severe, hot_extreme, normal
/doc:tempfreeze freezes or releases the automatic updates
/doc:tempreset back to 37 °C, effects cleared, updates released

These go through a server check (server/sv_admin_temp_gate.lua): a player who is not staff typing them gets nothing, so nobody can wipe their own hypothermia. They act on yourself only. /doc:tempinfo, /doc:tempmonitor, /doc:tempdebug and /doc:temphelp are open to everyone but only print diagnostics in the F8 console.

Managing dispensaries

Roster commands (console or staff with the ACE):

Command Effect
doc_addchief <serverId> [dispensaryId] seats a chief, or promotes an existing member
doc_adddoctor <serverId> [dispensaryId] adds a member as a doctor
doc_wipedispensary <dispensaryId> removes every member, chiefs included
doc_archives [serverId] opens the archives of every dispensary (in game for yourself, from the console on that player's screen)

The target must be connected with a loaded character. An unknown dispensary id is refused, and the message lists the valid ones: use the id of Config.Dispensaries, not the primary key of murphy_doctor_dispensary.

Day-to-day management belongs to the players: chiefs recruit, set ranks, remove members, write notes and withdraw from the treasury at the board (doctor guide). Ranks are free text and give no permission; only membership and the chief flag do. The last chief can never be removed from the board itself: use doc_wipedispensary and seat a new one if a dispensary is abandoned.

Configuration of each dispensary (position, board, grimoire points, archive point, beds, furniture, blip), the nurse, the duty pay and the treasury: Dispensaries, Nurse, Duty, Billing.

murphy_craft: with DoctorSpeFromCraft = true, the doctor specialisation of murphy_craft also makes a doctor. /doc:respe [serverId] resets it.

Debug mode

Config.Debug = true in shared/config.lua turns on:

  • [Murphy Doctor DEBUG] prints in the server console and the F8 console,
  • about 90 test commands (/doc:testinjury, /doc:entercoma, /doc:simhit, /doc:mg, doctoritems, testpoison...), listed in Commands and keybinds.

Most debug commands have no permission check: any player could give themselves items, injuries or a coma. Turn it on on a test server only, and back off before going live. A restart of the resource is needed after the change.

Useful debug commands for staff:

Command Effect
/doc:testinjury [bodyPart] [type] [severity] adds an injury to yourself, e.g. left-leg fractured severe
/doc:clearinjuries removes all your injuries
/doc:entercoma [cause] / /doc:exitcoma enters or leaves a coma (auto uses the real cause detection)
/doc:simhit <WEAPON_NAME> [damage] [melee 0/1] [headshot 0/1] runs a hit through the real injury pipeline
/doc:spawnattacker [WEAPON_NAME] [model] [distance] [passive] an armed NPC in front of you; /doc:clearattackers removes them
/doc:surgery:self the surgery window on yourself
/doc:mg <game> [auto] [fail] plays a world minigame on an NPC patient or a bench
/doc:setneeds [hunger] [thirst] sets your hunger and thirst
/doc:vitals health, cores, coma state, HUD state, alcohol level
doc_giveitem <serverId> <item> [count] gives an item (staff)
doc_seedarchives [count] [dispensaryId] fills the archives with fake reports; doc_wipeseedarchives removes them

Reading the logs

Server console. Lines worth knowing:

Line Meaning
[Murphy Doctor] INSTALL WARNING: ... a conflicting script runs (VORP death handler, vorp_metabolism, vorp_medic, rsg-medic). Fix it.
Early coma exit refused (...): player N, Xs of Ys elapsed a client tried to leave a coma before its timer. Either an exploit attempt, or another script reviving without authorising it (see below).
Usable items registered: grimoire: N, poison: N, poisonable: N, consumables: N how many usable items were registered at start.
Removed N row(s) of deleted characters. the start-up cleanup of characters deleted from the framework (Config.CleanDeletedCharacters).
Saved health data for N player(s) the save on resource stop.

Discord. Set Config.DiscordLogs.Enabled = true (in shared/config_metabolism.lua) and give a webhook per category in server/adapters/webhooks.lua, a server only file players cannot read: coma, revive, treatment, injury (severe injuries), infection, bandage, billing, nurse, treasury (withdrawals). Each category can be turned off in LogEvents. See Integrations.

In game, for law and medical RP. /incidents [name or id] (coma records: victim, cause, weapon, attacker, place, time; kept 30 days) and /certificates [name or id] (death certificates) are readable by doctors, staff and law jobs. The dispensary archives keep every signed report, bed stay and certificate; staff open them all with doc_archives.

Keeping it fair

The script is built so that players cannot heal themselves for free:

  • Coma exits are checked on the server (Config.Coma.ServerExitCheck = true): a client cannot get up before the timer. A refused exit is printed in the console and the coma comes back at the next login.
  • Every doctor action is re-checked on the server: doctor status, distance to the patient, items in the doctor's inventory, unpaid invoices. A treatment cannot be signed without the medications, a revive without the concentrestimulant (unless you set Config.Interactions.Revive.Item = nil).
  • Surgery and minigame results are validated: one-shot tokens, time limits and minimum times reject impossible results.
  • Temperature admin commands are gated on the server.
  • Server callbacks are rate limited per player, and the board, archives, help calls and reports check who sends what and from where.
  • Doctors' rosters are protected: only a chief can remove a member or change who is chief, and the last chief stays.

What staff should still watch:

  • Config.Debug must be false on a live server.
  • Config.Interactions.PromptVisibility = "everyone" lets anyone examine anyone; keep "doctors_only" unless you want it.
  • Config.Transport.DoctorsOnly = false lets anyone carry anyone.
  • Invoices: MaxAmount (250) and MaxUnpaidPerPatient (5) cap abusive billing; the archives and the treasury log show who billed whom.
  • A doctor abusing prescriptions (deliberate overdoses) leaves a signed report in the archives with their name.

Working with other scripts

  • Death and medic scripts: murphy_doctor replaces the death screen. Stop redemrp_respawn (REDEM:RP), set UseDeathHandler = false in vorp_core/config/config.lua and stop vorp_medic (VORP), stop rsg-medic (RSG). The install check warns about all of them except redemrp_respawn.
  • Hunger and thirst: stop vorp_metabolism on VORP, or set Config.Metabolism.Enabled = false to keep yours (Metabolism).
  • Revives from other scripts (admin menus, events): with ServerExitCheck on, they must call exports.murphy_doctor:AuthorizeComaExit(serverId) on the server just before reviving, or the player is back in a coma at the next login. VORP revives and the RSG admin menu revive are already authorised. As a last resort, Config.Coma.ServerExitCheck = false trusts the client. See Server exports.

Last updated: November 20, 2026