RedM documentation
Murphy's Doctor
Developers
Events
This page lists every event another resource can listen to or trigger, the framework events murphy_doctor reacts to, and, at the end, the internal events of the script.
Stable events keep their name and payload across versions. Internal events belong to the script's own screens and sync loops: they may change in any update, and triggering them from another resource is not supported.
Listening from another resource
- A local event (fired with
TriggerEventon the same side) only needsAddEventHandler. - A network event (sent with
TriggerClientEvent/TriggerServerEvent) must also be declared in your resource withRegisterNetEventbefore your handler receives it.
Server handlers of network events receive the player as the global source; read it on the first line of the handler.
Client events you can listen to
All stable.
| Event | Kind | Arguments | Fired when |
|---|---|---|---|
murphy_doctor:characterReady |
local | origin (string) |
A character is in the world and known by the server: first spawn, character switch, or resource restart with a character loaded. Debounced (once per load). |
murphy_doctor:healthLoaded |
network | healthData, isNewPlayer (boolean) |
The server sent the character's saved health: { health, maxHealth, hunger, thirst, temperature, injuries, conditions, ... }. |
murphy_doctor:injuryAdded |
local | bodyPart, injuryData |
An injury was added or replaced on a body part. Can fire more than once for the same injury. |
murphy_doctor:injuryRemoved |
local | bodyPart |
An injury was removed (treatment, auto-heal, clear). |
murphy_doctor:injuriesChanged |
local | none | The injury table changed as a whole (load, server aging, severity downgrade after a revive). Re-read GetLocalHealthData().injuries. |
murphy_doctor:bleedingStarted |
local | bodyPart, severity, weaponCategory |
A hit started a bleeding. |
murphy_doctor:scriptedHealthChange |
local | { reason, from, to, max } |
murphy_doctor deliberately wrote the ped's health. reason is a short tag such as bandage, treatment, revive, doctor_restore, bleeding, injury_drain, disease, poison, hunger, thirst, bed, new_character. Listen to it if your resource also manages ped health, so you never revert the change. |
murphy_doctor:syncDiseases |
network | diseases |
The server pushed the disease list { [diseaseId] = { appliedAt, visibleSymptoms, ..., symptomatic } }: every 30 seconds and on every change. |
murphy_doctor:healthRestored |
network | healthData |
Full heal by a doctor or staff: injuries and conditions are wiped, temperature back to 37. |
murphy_doctor:revivePlayer |
network | doctorServerId |
The player is revived in place by a doctor or staff. |
murphy_doctor:restoreComaState |
network | { inComa, cause, cooldown, elapsed } |
A saved coma is restored after a reconnect. |
murphy_doctor:reportSigned |
network | { reportId, doctorName } |
A doctor signed a treatment report for this player. |
murphy_doctor:invoicesReceived |
network | invoices, newId |
A doctor billed this player. invoices is the unpaid list ({ id, amount, reason, doctor, dispensary, at }). |
murphy_doctor:dutyChanged |
network | { onDuty, accrued, scopeDispId } |
The doctor's duty status changed (clock in or out, automatic end). |
murphy_doctor:addictionState |
network | { [substance] = { withdrawal } } |
Dependence flags changed (dependent substances only). |
murphy_doctor:helpCallReceived |
network | { callId, patientId, patientName, reason, searchArea = { x, y, z, radius } } |
Doctor side: a help call arrived (broadcast mode). |
murphy_doctor:helpAccepted |
network | doctorName |
Patient side: a doctor is on the way. |
murphy_doctor:noDoctor |
network | none | Patient side: no available doctor received the call. |
There is no dedicated client event for entering or leaving a coma. Poll IsInComa(), read the state bag
murphy_doctor:coma (see State bags) or listen to the server events murphy_doctor:enterComa /
murphy_doctor:exitComa below.
Client events you can trigger
All stable. "Local or network" means you can fire them with TriggerEvent from a client script, or with
TriggerClientEvent(name, playerId, ...) from the server.
| Event | Arguments | Effect |
|---|---|---|
murphy_doctor:notify |
notifType, message, durationMs, iconName, zone |
Shows a notification through the configured style (Config.NotifyStyle). message is a string, or { k = "locale.key", a = { args } } resolved with the player's locale. Only the first two arguments are required. |
murphy_doctor:setWeather |
weather (string) |
Feeds the temperature engine from a custom weather script ("rain", "snow", "thunderstorm"...). |
murphy_doctor:invalidateDoctorCache |
none | Drops the client doctor-status cache (after a job change). Also refreshes the duty and treasury points. |
murphy_doctor:jobChanged |
newJob |
Same effect as above; convenient from a job-change hook. |
murphy_doctor:playerSpawned |
none | Tells the script a character may have loaded. It confirms with the server, then fires characterReady. The plain local playerSpawned event has the same effect. |
murphy_doctor:startAuscultation |
targetServerId (optional) |
Starts an examination, as the StartAuscultation export. |
murphy_doctor:checkHealth |
none | Opens the player's own health screen. |
murphy_doctor:revivePlayer |
doctorServerId |
Resurrects the player in place at full health (same as the ReviveByDoctor export). From the server, call AuthorizeComaExit(target) first. |
murphy_doctor:applyPoisonEffects |
poisonData |
Applies a poison payload { type, injuryType, severity, duration, effects, effectDelay } in its own thread. |
Radial menu events
Meant for murphy_radialmenu and any other menu. Each patient event takes the patient's server id as its only argument;
without it, the patient is picked with the radial's on-screen picker when murphy_radialmenu runs, else the closest
player in range. They are ignored for non-doctors, and the server re-validates every action.
| Event | Action |
|---|---|
murphy_doctor:client:radialAuscultate |
Examine |
murphy_doctor:client:radialTreatment |
Treatment screen |
murphy_doctor:client:radialRevive |
Revive (patient must be down) |
murphy_doctor:client:radialBandage |
Bandage (patient must be conscious) |
murphy_doctor:client:radialSurgery |
Surgery sheet (patient must be conscious) |
murphy_doctor:client:radialAutopsy |
Autopsy (patient in a coma) |
murphy_doctor:client:radialStretcher |
Unfold a stretcher (no argument; same rules as the stretcher command) |
murphy_doctor:client:radialCallHelp |
Call a doctor (no argument; help call cooldown applies; works for everyone) |
Server events you can listen to
| Event | Kind | Arguments | Fired when | Stability |
|---|---|---|---|---|
murphy_doctor:incidentRecorded |
local | { victim, cause, attacker, npc, zone } |
A coma was recorded. victim and attacker are charids (attacker is nil for an NPC or an unknown attacker), npc is a boolean. Module: Config.Incidents. |
stable |
murphy_doctor:deathCertificate |
local | { id, deceased, name, cause, weapon, place, doctor } |
A doctor signed a death certificate. deceased is the charid (nil for an NPC), doctor the doctor's charid. Module: Config.Autopsy. |
stable |
murphy_doctor:outbreakChanged |
local | list (same shape as GetActiveOutbreaks) |
An outbreak started, stopped or expired, and once at start when outbreaks were restored. Module: Config.Epidemics. |
stable |
murphy_doctor:server:membersChanged |
local | none | A dispensary member was added or removed. | stable |
murphy_doctor:enterComa |
network | { cause, cooldown, startTime, attacker, attackerIsNpc, weapon } |
A player's client reports a coma (source is the player). The values are client reported; the server clamps the cooldown itself and ignores duplicates within 10 seconds. |
stable to listen, internal to trigger |
murphy_doctor:exitComa |
network | none | A player's client reports the end of a coma (timer, doctor, framework revive). With Config.Coma.ServerExitCheck, an early exit can still be refused after this event. |
stable to listen, internal to trigger |
murphy_doctor:loadHealth |
network | none | A player's client asks for its character's health (character ready). | stable to listen, internal to trigger |
Server events you can trigger
| Event | Arguments | Effect | Stability |
|---|---|---|---|
murphy_doctor:useConsumable |
src, itemName |
Local server event (clients cannot reach it). Runs the full consumable flow for a Config.Consumables.Items entry: checks the player owns the item (and its required companion item), removes it, gives back the configured item, plays the animation and effects on the client, then liver wear, infection roll and addiction. Use it when your inventory or shop needs to "use" an item. |
stable |
murphy_doctor:server:membersChanged |
none | Local. Reloads the doctor members cache after you wrote to murphy_doctor_members yourself. |
stable |
Framework events murphy_doctor reacts to
These are handled by the adapters (client/adapters/, server/adapters/), which you can read and edit. See
Framework adapters.
| Event | Side | Framework | Reaction |
|---|---|---|---|
playerSpawned |
client | all | Character may have loaded: confirmed with the server, then characterReady |
vorp:SelectedCharacter |
client | VORP | Re-fired as playerSpawned |
vorp:SelectedCharacter |
server | VORP | Drops the cached character id of that player |
vorp_core:Server:OnPlayerRevive |
server | VORP | AuthorizeComaExit(target) |
vorp_core:Client:OnPlayerRevive, vorp:resurrectPlayer |
client | VORP | CleanupComaState() when in a coma |
RSGCore:Client:OnPlayerLoaded |
client | RSG | Re-fired as playerSpawned |
RSGCore:Server:OnPlayerLoaded |
server | RSG | Drops the cached character id of that player |
rsg-adminmenu:server:playerrevive |
server | RSG | AuthorizeComaExit(target) when the caller has the admin permission |
rsg-medic:client:playerRevive, rsg-medic:client:adminRevive |
client | RSG | CleanupComaState() when in a coma |
redemrp_respawn:client:Revived |
client | REDEM:RP | Revives the ped if it is still dead, then CleanupComaState() |
RegisterUsableItem:<item> |
server | REDEM:RP | Item use, routed to the consumable, poison and grimoire flows |
weathersync:changeWeather |
client | any | Weather input of the temperature engine |
murphy_craft:server:specialisationChanged |
server | any | Drops the doctor cache of that player (when Config.Interactions.DoctorSpeFromCraft is on) |
Events murphy_doctor sends to other resources:
| Event | Side | Purpose |
|---|---|---|
vorp:ImDead |
client to server | Keeps VORP's isdead flag in sync with the coma |
RSGCore:Server:SetMetaData (isdead) |
client to server | Clears RSG's dead flag on revive |
redemrp_respawn:client:Revived |
client, local | Tells REDEM:RP listeners the player got up |
playerSpawned |
client, local | Re-fired by the VORP and RSG adapters on character load |
murphy_platform:pushCustomEvent |
server, local | Activity feed, see below |
Activity feed (murphy_platform)
When murphy_platform runs, medical actions are pushed to its activity timeline through the local server event
murphy_platform:pushCustomEvent. Without the platform the event has no listener and nothing happens. You can listen to
it from your own resource to build logs.
Payload: { source, src, event_type, label, icon, color, metadata }. source is the resource name (murphy_doctor),
src the player concerned, label a localized sentence.
event_type |
src |
metadata |
|---|---|---|
revive_given |
doctor | { target, patient_name } |
revive_received |
patient | { by, doctor_name } |
bandage_given |
doctor | { target, patient_name, item } |
bandage_received |
patient | { by, doctor_name, item } |
nurse_heal |
patient | { amount, injuries } |
help_cry |
patient | none |
help_response |
doctor | { patient, patient_name } |
consumable_used |
player | { item } |
alcohol_intoxication |
player | { reason, severity } |
item_poisoned |
player | { item, poison } |
doctor_duty_start |
doctor | none |
doctor_duty_end |
doctor | none |
doctor_treasury_withdraw |
doctor | { dispensaryId, amount, balance } |
Internal events
Internal, may change in any version. They are listed so you can recognise them in logs and network profilers. Every server event a client can send is validated on the server (doctor status, distance to the patient, items, cooldowns, one-shot tokens, value clamps), so triggering them by hand from a modified client gains nothing. Do not trigger them from another resource: use the exports.
Server events sent by clients
- Sync:
syncHealth,syncInjuries,syncConditions,loadHealth,saveMetabolismLayout,syncConsumeStart,syncConsumeStop,finishedConsuming - Coma and care:
enterComa,exitComa,checkComaState,revivePatient,bandagePatient,notifyPatientAuscultation,nurse:requestHeal,surgeryReact - Help calls:
requestHelp,cryForHelp,helpCallResponse,playerGetUp - Infection and alcohol:
server:coldExposure,server:animalBite,server:alcoholIntox - Poison:
requestPoisonableItems,poisonItem,consumePoisonedItem - Dispensary and archives:
addDoctor,editDoctor,deleteDoctor,updateDispensaryNotes,addPrescription,updatePrescription,removePrescription,deleteTreatmentReport,getArchivePatient - Transport:
transportAnswer,transportLost,transportRelease,transportHello - Staff:
admin:requestTempAction - Cache:
server:invalidateDoctorCache(use theInvalidateDoctorCacheexport instead) - Callback transport:
triggerCallback,responseCallback(see Callbacks)
All names carry the murphy_doctor: prefix.
Client events sent by the server
applyBandageHeal, applyTreatmentEffects, archivePatientData, callClosed, callsUpdated, chatLines,
clearPoisonEffects, consumeItem, debug:infectionRoll, diseaseDrainTick, helpCallRequest, helpCallTaken,
helpReleased, injuriesAged, invoicePaid, invoicesReminder, itemPoisoned, openArchivesAdmin,
openGrimoireFromItem, openPoisonMenu, patientFound, poisonableItemsReceived, poisonFailed,
prescriptionAdded, prescriptionRemoved, prescriptionUpdated, remoteConsumeStart, remoteConsumeStop,
stretcherUnfold, surgeryApplied, surgeryPatient, testHallucination, transportAsk, transportRole,
transportWorld, updateDispensary, vorpSetDead, admin:settemp, admin:tempreset, admin:tempfreeze,
admin:tempsim.
Local client events
onGetUp, onAuscultationClosed, poisonItemSelected, resetDamageBaseline, playerDied (listened to clear
effects, animations and temperature effects; the script does not fire it itself). The handlers of helpRequest and its
local relay onHelpRequest remain for compatibility, but the server does not send helpRequest in this version: use
helpCallReceived.
Last updated: November 20, 2026