RedM documentation

Murphy's Doctor

Configuration

Dispensaries


This page covers shared/config_dispensary.lua: the dispensaries (hospital and clinics) with their roster board, encyclopedia points, archives, beds, furniture and map blips, the doctor ranks and permissions, and the archives settings that live in the same file.

How it works

A dispensary is a place where doctors work. Each one has:

  • a board (coords): the roster of its doctors, with their rank and status, and the shared notes. Anyone can walk up and read the roster. Members recruit, edit and manage the team here, and the chief sees the dispensary's money (treasury, unpaid invoices).
  • encyclopedia points (grimoireCoords): where doctors open the medical encyclopedia.
  • an archives point (archiveCoords): the medical records, and the duty clock and treasury options (see Duty and Nurse).
  • beds for patients, a nurse NPC (see Nurse), optional furniture and a map blip.

Members of a dispensary are doctors for the whole script (treatment, help calls, transport...). See General for the other ways to detect doctors.

Ranks and permissions

There are two permission levels: member and chief. The rank is a free text shown on the board ("Intern", "Surgeon", "Head Nurse"...), it grants nothing by itself.

Action at the board Member Chief
Read the roster yes (anyone can) yes
Read the notes yes (anyone when PublicNotes = true) yes
Edit the notes yes yes
Recruit the nearest player (given DefaultRank) yes yes
Edit a member's name, rank and status yes, except chiefs (a member may edit their own line) yes
Make a member chief, or remove chief status no yes
Fire a member no yes
See the treasury, its ledger and the unpaid invoices yes yes
Withdraw money from the treasury at the board no yes

The last chief of a dispensary cannot be removed or fired. Member statuses are present, away, busy and break.

First chief. A new dispensary has nobody to recruit. Make the first chief from the server console or as an in-game admin:

text
doc_addchief <serverId> [dispensaryId]

dispensaryId is the id of the dispensary in Config.Dispensaries (default 1). doc_adddoctor <serverId> [dispensaryId] adds a plain member the same way. See Commands.

Board settings

Key Default Description
Config.Dispensary.PromptKey 0xCEFD9220 (E) Key of the board and encyclopedia prompts in native prompt mode. Also used by the archives prompt.
Config.Dispensary.OpenDistance 3.0 Metres from the board (or an encyclopedia point) to show the prompt.
Config.Dispensary.PromptType "auto" "murphy_interact", "native" or "auto" (murphy_interact when it runs, the game's native prompts otherwise). Applies to the board and the encyclopedia, and is inherited by the archives, duty and treasury points when theirs is nil.
Config.Dispensary.AddDoctorDistance 5.0 Metres. When recruiting, the nearest player within this distance is picked.
Config.Dispensary.DefaultRank "Intern" Rank given to a newly recruited doctor.
Config.Dispensary.PublicNotes false true = anyone at the board can read the notes. false = only members; visitors still see the roster. Editing is always member-only.

Dispensary entries

Config.Dispensaries is a list. Each entry:

Field Type Description
id number Unique logical id. It keys the roster, notes, treasury, invoices and archives in the database: never change it once players use the dispensary.
name string Name of the establishment, shown as the board title, on invoices and in archives. Written to the database at every start, so renaming it here renames it everywhere.
coords vec3 Position of the board. Also the blip position and the reference point used to find the dispensary of an invoice.
grimoireCoords vec3 or list of vec3 One or more encyclopedia points. Optional.
archiveCoords vec3 or list of vec3 One or more archives points. The duty and treasury options sit on the first one (on the board when there is none). Optional.
beds list Beds of the dispensary. Each bed is a vec4(x, y, z, heading) (the bed's own position and heading, default model Config.Transport.Beds.Model) or { coords = vec4(...), model = "p_bed14x" }. Where the world has no bed of that model at that spot, the script places one. See Transport.
props list Furniture placed by the script for rooms the game leaves empty: { model = "...", coords = vec4(x, y, z, heading) }. Optional.
blip table Map blip, see below.

Blip

Field Default Description
blip.enabled - true shows the blip.
blip.sprite -924021303 Blip icon hash.
blip.scale 0.6 Blip size.
blip.label localized "Dispensary" Optional blip name. Default: dispensary.blip_default in shared/locales/<lang>.lua.

Shipped dispensaries

id Name Encyclopedia points Beds Furniture
1 Saint Denis Hospital 2 1 (the doctor's examination couch) none
2 Blackwater Clinic 2 2 (placed by the script) 6 props
3 Rhodes Clinic 1 2 (placed by the script) 6 props
4 Strawberry Clinic 1 1 none
5 Valentine Clinic 1 2 (p_bed14x) none

Each one has an archives point and a blip. Their nurses are set in Nurse.

Adding a dispensary

  1. Stand at each spot in game and note the coordinates (board, encyclopedia, archives, beds with their heading).
  2. Add an entry with a new id:
lua
Config.Dispensaries[#Config.Dispensaries + 1] = {
id = 6,
name = "Annesburg Clinic",
coords = vec3(0.0, 0.0, 0.0), -- the board
grimoireCoords = {
vec3(0.0, 0.0, 0.0), -- a desk or a bookshelf
},
archiveCoords = vec3(0.0, 0.0, 0.0), -- a filing cabinet (duty and treasury too)
beds = {
vec4(0.0, 0.0, 0.0, 90.0), -- default bed model
{ coords = vec4(0.0, 0.0, 0.0, 180.0), model = "p_bed14x" },
},
props = {
{ model = "p_cabinetdoctor01x", coords = vec4(0.0, 0.0, 0.0, 270.0) },
{ model = "p_chairdoctor01x", coords = vec4(0.0, 0.0, 0.0, 0.0) },
},
blip = { enabled = true, sprite = -924021303, scale = 0.6, label = "Annesburg Clinic" },
}
  1. Optionally add a nurse for it in Config.Nurse.NPCs with dispensaryId = 6 (Nurse), and its townhall in Config.Billing.Tax.Townhalls (Billing).
  2. Restart murphy_doctor, then make its first chief with doc_addchief <serverId> 6.

Archives settings

Config.Archives sets how the medical records are shared and opened. The records themselves are described in Records and autopsy.

Key Default Description
Config.Archives.SharedArchives true true = every dispensary sees all reports. false = each dispensary only sees its own.
Config.Archives.OpenDistance 3.0 Metres from an archives point to show the prompt.
Config.Archives.PromptType nil "murphy_interact", "native" or "auto". nil = inherit Config.Dispensary.PromptType.
Config.Archives.MaxResultsPerPage 50 Patients loaded per page in the archives list (search by patient or doctor name). 1 to 100; a value below 1 falls back to 50.

Related: Duty · Billing · Nurse · Transport · Records and autopsy · General · Doctor guide


Last updated: November 20, 2026