RedM documentation
Murphy's Doctor
Configuration
Animations
This page covers shared/config_animations.lua: the catalog of every animation the doctor plays by name (examination, treatment, revive, grimoire, sickness and injury poses). Changing an animation means editing one entry here; no other file needs to change.
How the catalog is used
Config.Animations is a table of named entries. The script plays an entry with PlayDoctorAnim("key") (from client/anims.lua), which loads the dictionary, plays the clip or scenario, attaches props, keeps looped animations running and cleans up afterwards. Other places that take an animation key, such as Config.Surgery.Poses or animKey in Config.Treatment.DiseaseEffects, use the same catalog.
A playing animation stops by itself when the ped dies, ragdolls, starts sprinting or no longer exists, when the resource stops, or when the code stops it (for example read_grimoire stops when the grimoire closes). Animations are not played on a player who is being carried, on a stretcher or in a bed.
Consumables (food, drinks, medicine taken by the player) use their own presets in Config.Consumables.AnimationPresets, not this catalog (Consumables).
Entry formats
An entry uses one of three formats.
1. Dictionary and clip (most entries):
2. Scenario (a native world scenario):
3. Phases (intro, looped action, outro), for multi-step animations:
Only action is required. A looped action runs until the code stops the entry by its key. This example is the template from the file header; no phased entry is shipped.
Fields
Dictionary and clip entries
| Field | Type | Description |
|---|---|---|
dict |
string | Animation dictionary. |
clip |
string | Clip name in the dictionary. |
flag |
number | Animation flag, default 49. See Flags. |
duration |
number | Milliseconds. -1, or not set, means no time limit: combine with loop = true for a pose that lasts until it is stopped. |
loop |
boolean | Replays the clip whenever it stops, until the entry is stopped. |
prop |
string | Prop model attached during the animation, for example "p_syringe01x". |
propBone |
string or number | Bone name ("PH_R_HAND", "PH_L_HAND", "skel_l_hand", "PH_L_HandStrap_00", "PH_R_ShoulderReach", "SKEL_R_Finger13") or bone index (0x6F06). Default: right hand. |
propOffset |
vector | Position offset in the bone's local space, in metres. Accepted: vec3(x, y, z), vector3(x, y, z), { x = , y = , z = } or { x, y, z }. |
propRot |
vector | Rotation offset in degrees (pitch, roll, yaw), same formats. |
propSpawnDelay |
number | Milliseconds after the start before the prop appears (lets the hand reach for it). |
propDespawnEarly |
number | Milliseconds before the end at which the prop is removed (the hand empties first). |
props |
list | Several props with their own timings, same fields as below. |
Scenario entries
| Field | Type | Description |
|---|---|---|
scenario |
string | Scenario name, for example "WORLD_HUMAN_CROUCH_INSPECT". |
duration |
number | Milliseconds. |
loop |
boolean | Keeps the scenario running. |
Phased entries
| Field | Type | Description |
|---|---|---|
phases.intro, phases.action, phases.outro |
table | Each: dict, clip, flag (default 1), duration (milliseconds, -1 with loop = true for the action). |
props |
list | Each prop: model, bone, offset, rot, spawnAt (ms after the start), despawnAt (ms after the start, optional). |
Flags
Flags used by the shipped entries:
| Flag | Used for |
|---|---|
1 |
Full-body clips played in place: treatments, revive, surgery, ground poses |
25 |
Upper body, repeating, the player can keep walking: bandage, cough, stomach pain, grimoire reading |
31 |
Held idle loops: injured arm, labored breathing, limp, shiver |
49 |
Upper body and repeating, the default when no flag is set: vomit |
Shipped entries
"Played by" lists where the script uses the entry. Entries marked "available" are not played by the script itself; they are ready for your own calls or for other settings that take an animation key.
Doctor on a patient
| Key | Format | Played by |
|---|---|---|
auscultation |
scenario WORLD_HUMAN_CROUCH_INSPECT, 5 s |
available |
bandage |
mech_inventory@crafting@fallbacks@volatile_dynamite / loop, flag 25, 4.5 s |
Bandage action (keep it near Config.Interactions.Bandage.AnimDuration) |
injection |
mech_animal_interaction@horse@right@injection / injection_player, 3.5 s |
available |
pulse_check |
scenario WORLD_HUMAN_CROUCH_INSPECT, 2.5 s |
available |
wound_clean |
amb_work@world_human_repair@med@oilcan@male_a@idle_b / idle_d, 5 s |
Examination, treatment form, autopsy, 2D surgery games (looped while the window is open) |
wound_clean_kneel |
amb_misc@world_human_wash_kneel_river@male_a@idle_a / idle_a, 5 s |
Doctor pose of the 2D bullet extraction (Config.Surgery.Poses.Doctor) |
surgery |
script_re@injured_rider@dr_office / surgery_idle_doc, 20 s |
available |
surgery_v2 |
same dictionary / surgery_v2_doc, 20 s |
available |
recovery_distract |
same dictionary / recovery_distract_base_doc, 5 s |
available |
surgery_exit |
same dictionary / surgery_exit_doc, 4 s |
available |
treat_projectile |
as wound_clean, 5 s |
available |
treat_bandaged |
as bandage, 5 s |
available |
treat_cut |
as surgery, 20 s |
available |
treat_broken |
as surgery, 20 s |
available |
revive_patient |
mech_revive@unapproved / revive, 5 s |
Revive action |
sign_report |
amb_work@world_human_write_notebook@female_a@idle_c / idle_g, 3.5 s |
Signing a treatment report |
Player on themself
| Key | Format | Played by |
|---|---|---|
drink |
mp_player_intdrink / mp_player_int_drink_bottle, beer bottle prop, 3 s |
available |
eat |
mp_player_inteat@chicken / mp_player_int_eat_chicken, bread prop, 5 s |
available |
self_inject |
mech_inventory@item@stimulants@inject@quick / quick_stimulant_inject_rhand, syringe prop, 4 s |
available |
swallow_pill |
mp_player_intdrink / mp_player_int_drink_bottle, 2 s |
available |
self_bandage |
as bandage, 5 s |
available |
read_grimoire |
amb_work@world_human_write_notebook@male_a@idle_a / idle_a, book prop in the left hand, looped |
Reading the grimoire, until it closes |
Sickness and status
| Key | Format | Played by |
|---|---|---|
cough |
mech_loco_m@character@arthur@fidgets@injured@action@unarmed / cough, flag 25, 3 s |
Poisons |
vomit |
amb_misc@world_human_vomit@male_a@idle_b / idle_e, flag 49, 5 s |
Cholera (animKey of Config.Treatment.DiseaseEffects) |
shiver |
script_re@lost_man / idle, looped |
Severe hypothermia (Temperature) |
sweat_wipe |
mech_loco_m@generic@fidgets@hot / both_hands_fanning_02, looped |
Severe overheating (Temperature) |
hold_stomach |
mech_loco_m@character@arthur@fidgets@injured@action@unarmed / pain_stomach, looped |
Poisons |
Injury idle poses
While a player has a severe injury or a fracture, one looped pose shows their worst injured zone. The script checks the zones in this order and plays the first match:
| Key | Format | Zone |
|---|---|---|
labored_breath |
mech_loco_m@generic@injured@unarmed@chest@idle / idle |
belly |
injured_back |
mech_loco_m@generic@injured@unarmed@critical_back@idle / idle |
reserved, no matching zone in 1.0 |
injured_neck |
mech_loco_m@generic@injured@unarmed@critical_neck_right@idle / idle |
reserved, no matching zone in 1.0 |
injured_shoulder |
mech_loco_m@character@arthur@injured@left_shoulder@unarmed@idle / idle |
reserved, no matching zone in 1.0 |
hold_arm |
mech_loco_m@generic@injured@unarmed@right_arm@idle / idle |
left or right arm |
injured_leg |
mech_loco_m@generic@injured@unarmed@left_leg@idle / idle |
left or right leg |
Head and foot injuries have no idle pose.
Extra entries
| Key | Format | Played by |
|---|---|---|
sick_dying |
amb_misc@world_human_indian_sick_dying@male@male_a@idle_a / idle_c, looped |
available |
critical_ground_d |
mech_loco_m@generic@injured@unarmed@critical_ground@idle@_variations@d / idle, looped |
available |
critical_ground_e |
same, variation e |
available |
moderate_drunk |
mech_loco_m@generic@drunk@unarmed@idle_moderate_drunk / idle, looped |
available |
Customising
Swap an animation: edit the entry's dict, clip, flag or duration, keep its key, restart the resource. Every place that plays the key picks it up.
Add a prop: set prop, propBone, propOffset and propRot. Place the prop by hand with a prop placement tool to find the offset and rotation, then copy the values.
Add an entry for another setting or script: add a new key, then use it where an animation key is accepted (Config.Surgery.Poses, painAnimation.animKey of a disease) or call it from your own resource with the client exports PlayDoctorAnim, StopDoctorAnim, PlayDoctorAnimSequence, PlayAnim, PlayScenario and PlayPhasedAnim (Client exports):
Find dictionaries and clips in the rdr3_discoveries repository or with an animation browser.
Testing
With Config.Debug = true:
/doc:testanim <key>plays one entry on your character./doc:stopanimstops it./doc:listanimslists the keys.
If an animation does not show, look in F8 for [murphy_doctor] anim dict failed: <dict>: the dictionary name is wrong or does not exist in this game build. An unknown key prints [murphy_doctor] unknown anim key: <key>. See Commands.
Last updated: November 20, 2026