RedM documentation
Murphy's Doctor
Configuration
Duty
This page covers shared/config_duty.lua: the duty clock of dispensary members, the salary they earn while on duty, where that salary comes from, and whether being on duty is required to receive help calls.
How it works
- Any member of a dispensary (chief or not) can start and end a shift at the dispensary's archives point (at the board when the dispensary has no archives point).
- While the player is online and on duty, a salary accrues:
payPerIntervaldollars for everyintervalMinuteson duty, counted to the second. - The salary stacks in a pending balance. The doctor collects it at the same point with Collect my pay.
- The on/off duty state is saved in the database (
murphy_doctor_duty). It survives restarts and reconnects, but the clock only runs while the player is actually online. - Only the relevant options show: "Start shift" when off duty, "End shift" when on duty at this dispensary, "Collect my pay" when there is something to collect.
With murphy_interact, the options join the archives interaction. With native prompts, R toggles the shift and G collects the pay.
Duty and services
With GateServices = true, being on duty decides who is "at work":
- Help calls and the call board only reach doctors on duty (see Help call).
- The nurse NPC only steps aside for a doctor on duty nearby (see Nurse).
- The
/stretchercommand is refused to doctors off duty (see Transport).
An off-duty doctor is still a doctor: they can treat, operate and bill as usual.
Settings
| Key | Default | Description |
|---|---|---|
Config.Duty.Enabled |
true |
Enables the module. false = no duty clock, no shift options, no salary, and no service gating. |
Config.Duty.GateServices |
false |
true = help calls, the call board, the nurse gate and the /stretcher command only count doctors on duty. false = every doctor counts, on duty or not. No effect when Enabled = false. |
Config.Duty.payPerInterval |
1.5 |
Dollars earned per slice of intervalMinutes. |
Config.Duty.intervalMinutes |
30 |
Minutes on duty per pay slice. At the defaults, $3 per hour on duty. |
Config.Duty.accrualTickSeconds |
60 |
Seconds between two server updates of the pending pay (and its database save). |
Config.Duty.PaySource |
"generated" |
Where the salary comes from when it is collected, see below. |
Config.Duty.InteractDistance |
3.0 |
Metres from the duty point to show the options. |
Config.Duty.PromptType |
nil |
"murphy_interact", "native" or "auto". nil = inherit Config.Archives.PromptType, then Config.Dispensary.PromptType. |
Pay source
| Value | Behaviour |
|---|---|
"generated" |
The money is created by the script (a state salary). No treasury is touched. |
"treasury" |
The money is taken from the dispensary treasury. If the till cannot cover the whole pending pay, the collection is refused and the pay stays pending. |
"treasury_then_generated" |
The treasury pays when it can; when it cannot, the money is created instead. |
The treasury modes need the dispensary treasury (Config.Nurse.Treasury.Enabled = true, see Nurse). Invoices and nurse fees fill it (see Billing).
Example: doctors paid $5 per hour, from the money their dispensary earns.
Related: Dispensaries · Billing · Nurse · Help call · Database
Last updated: November 20, 2026