RedM documentation

Murphy's Doctor

Developers

Client exports


Call them from any client script of another resource:

lua
if exports.murphy_doctor:IsInComa() then return end

Every client export acts on the local player (or on the screens of the local player). To act on someone else, send your own event to that player's client and call the export there.

Module: the export is only registered when that module is enabled (see Module guards). "always" means the export exists whatever the configuration. Doctor actions opened from the client are re-validated by the server (doctor status, distance, items), whoever opened the screen.

There are 137 client exports.

System Exports
Doctor status IsPlayerDoctor, IsLocalPlayerDoctor, IsPlayerDoctorAsync, IsLocalPlayerDoctorCached, NeedsDoctor, CanPlayerAuscultate, CanSeeAuscultationPrompt, InvalidateDoctorCache, RefreshDoctorStatus
Health and injuries GetLocalHealthData, IsHealthDataLoaded, AddInjuryToBodyPart, AddLocalInjury, RemoveLocalInjury, RemoveLocalInjuryByType, ClearAllInjuries, SetLocalHealthCondition, SetDamageTrackingEnabled, GetBodyPartFromBoneId, CalculateHeartRate, GetClosestPlayer, CollectCurrentHealthData, SyncHealthToServer, UpdateLocalHealth, ApplyHealthEffects
Effects SetEffectsEnabled, RefreshEffects, ClearAllEffects, TriggerRagdoll
Coma and revive IsInComa, GetComaTimeRemaining, GetCurrentDeathCause, GetCurrentDeathCauseLabel, GetDeathCauseLabel, DetermineDeathCause, EnterComa, ReviveByDoctor, ExitComa, CleanupComaState
Help calls CanCallForHelp, RequestHelp, AutoCallForHelp, CreateSearchAreaBlip, RemoveSearchAreaBlip, OpenCallBoard
Hunger and thirst GetHunger, GetThirst, IsHungerThirstEnabled, AddHunger, RemoveHunger, SetHunger, AddThirst, RemoveThirst, SetThirst
Consumables and alcohol ConsumeItem, IsConsuming, GetAlcoholLevel, SetAlcoholLevel
Addiction GetAddictionState
Temperature GetBodyTemperature, SetBodyTemperature, GetTemperatureSeverityLevel
Poison ApplyPoisonEffects, StopPoisonEffects, OpenPoisonMenu, IsPoisonMenuOpen
Doctor actions StartAuscultation, StopAuscultation, StartTreatment, StartSurgery, CheckOwnHealth, OpenGrimoire, OpenMyInvoices, CacheTreatmentData, GetTreatmentCache, ClearTreatmentCache, GetCurrentTreatmentPatient, ResetCurrentTreatmentPatient, RegisterPlayerInteraction, UnregisterPlayerInteraction
Metabolism HUD ShowMetabolismHUD, HideMetabolismHUD, RefreshMetabolismHUD, IsMetabolismVisible, EnableMetabolismEditMode, SetMetabolismEditMode, UpdateMetabolismPositions
Notifications Notify, NotifySimple, NotifyCenter, NotifyTop, CheckHungerThreshold, CheckThirstThreshold, CheckHealthThreshold, CheckTemperatureThreshold, ResetThresholdStates
Animations PlayDoctorAnim, PlayDoctorAnimSequence, StopDoctorAnim, PlayAnim, PlayScenario, PlayPhasedAnim
UI screens (low level) 35 Show* / Hide* / Update* exports and utilities

Doctor status

The job is only known by the server, so the client asks it through the murphy_doctor:isDoctor callback and caches the answer.

Export Returns Notes
IsPlayerDoctor() boolean 30 second cache. When the cache is cold it blocks the calling thread up to 2 seconds waiting for the server. Never call it every frame.
IsLocalPlayerDoctor() boolean Alias of IsPlayerDoctor.
IsPlayerDoctorAsync(callback) nothing Calls callback(isDoctor) from the cache, or after the server answered.
IsLocalPlayerDoctorCached() boolean Never blocks. Refreshed in the background every 15 seconds (can lag a job change by that much). Use it for menu visibility and per-frame checks.
NeedsDoctor() boolean true in a coma or at 25 % health or less. Never blocks, never notifies.
CanPlayerAuscultate() boolean true when Config.Interactions.PromptVisibility = "everyone", when Config.Debug is on, or when the player is a doctor (may block like IsPlayerDoctor).
CanSeeAuscultationPrompt() boolean Alias of CanPlayerAuscultate.
InvalidateDoctorCache() nothing Drops the local cache.
RefreshDoctorStatus() boolean Drops the cache and checks again (may block).

Module: always.

lua
-- radial menu slot visibility
visibleWhen = function()
return exports.murphy_doctor:IsLocalPlayerDoctorCached()
end

Health and injuries

GetLocalHealthData

lua
local data = exports.murphy_doctor:GetLocalHealthData()

Returns the live health table of the local player. Read it, never write into it.

lua
{
health = 150, maxHealth = 200, -- ped health at the last sync
hunger = 80, thirst = 65, -- 0 (empty) to 100 (full)
temperature = 37.0, -- body temperature in °C
injuries = { -- one entry per injured body part
["left-arm"] = { type = "cut", name = "cut", severity = "moderate", label = "...", icon = "...",
timestamp = 123456, autoHeal = true, bodyPart = "left-arm" },
},
conditions = { cold = false, hot = false, bleeding = false, poisoned = false, dirty = false, heavy = false },
diseases = { cholera = { appliedAt = 1763000000, visibleSymptoms = { ... }, symptomatic = true } },
}

diseases is pushed by the server every 30 seconds and on every change. health and maxHealth are refreshed on each sync; read the ped directly for live values. Module: always.

IsHealthDataLoaded

lua
exports.murphy_doctor:IsHealthDataLoaded() --> boolean

false until the server sent the character's saved health (after each character selection). Wait for it before reading hunger, thirst or injuries at spawn. Module: always.

AddInjuryToBodyPart

lua
exports.murphy_doctor:AddInjuryToBodyPart(bodyPart, injuryType, severity)
Parameter Type Description
bodyPart string A body part id
injuryType string An injury type of InjuriesConfig.Types
severity string, optional minor, moderate or severe; defaults to the type's base severity

Builds the injury from the injury tables (label, icon, auto-heal rule), replaces any injury on that body part, syncs it to the server and refreshes the effects. The local event murphy_doctor:injuryAdded fires (more than once for the same call). Module: always.

lua
-- a bear trap from your hunting script
exports.murphy_doctor:AddInjuryToBodyPart("left-foot", "cut", "severe")

AddLocalInjury

lua
exports.murphy_doctor:AddLocalInjury(bodyPart, injuryData)

Low-level variant: you build the injury table yourself ({ type, name, severity, label, icon, timestamp, autoHeal, bodyPart }, see GetLocalHealthData). Stores it, syncs injuries to the server, fires murphy_doctor:injuryAdded and refreshes the HUD. Prefer AddInjuryToBodyPart. Module: always.

RemoveLocalInjury

lua
exports.murphy_doctor:RemoveLocalInjury(bodyPart)

Removes the injury of a body part, syncs, fires murphy_doctor:injuryRemoved. Module: always.

RemoveLocalInjuryByType

lua
exports.murphy_doctor:RemoveLocalInjuryByType(bodyPart, injuryType) --> boolean

Removes the injury only when its type matches. Returns true when something was removed. Module: always.

ClearAllInjuries

lua
exports.murphy_doctor:ClearAllInjuries()

Removes every injury (each removal is synced and fires injuryRemoved) and clears the running effects. Diseases, conditions, hunger and thirst are untouched. Module: always.

SetLocalHealthCondition

lua
exports.murphy_doctor:SetLocalHealthCondition(condition, value)
Parameter Type Description
condition string cold, hot, bleeding, poisoned, dirty or heavy
value boolean New state

Sets a condition flag, syncs conditions to the server (doctors see it on examination) and refreshes the HUD indicator. Module: always.

SetDamageTrackingEnabled

lua
exports.murphy_doctor:SetDamageTrackingEnabled(enabled)

Pauses (false) or resumes (true) automatic injury creation from damage events. Use it around scripted damage, teleports, minigames or cutscenes. Remember to turn it back on. Module: always.

GetBodyPartFromBoneId

lua
exports.murphy_doctor:GetBodyPartFromBoneId(boneId) --> string

Body part of a ped bone id, "belly" when the bone is unknown. Module: always.

CalculateHeartRate

lua
exports.murphy_doctor:CalculateHeartRate(ped) --> number

Estimated beats per minute of any ped: around 75, higher when running or below 50 % health, with a small random variation. Module: always.

GetClosestPlayer

lua
local serverId, ped = exports.murphy_doctor:GetClosestPlayer(coords, maxDistance)

The closest other player within maxDistance metres of coords (a vector3), or nil, nil. Module: always.

CollectCurrentHealthData

lua
exports.murphy_doctor:CollectCurrentHealthData() --> table

Re-reads health and maxHealth from the ped into the health table and returns it (same live table as GetLocalHealthData). Module: always.

SyncHealthToServer

lua
exports.murphy_doctor:SyncHealthToServer()

Sends the local health table to the server now (it is sent every 30 seconds and on most changes anyway). Module: always.

UpdateLocalHealth

lua
exports.murphy_doctor:UpdateLocalHealth(field, value)

Raw write of one field of the health table. No sync, no HUD refresh, no event: follow it with SyncHealthToServer and RefreshMetabolismHUD if needed. Prefer the dedicated setters. Module: always.

ApplyHealthEffects

lua
exports.murphy_doctor:ApplyHealthEffects()

Fires murphy_doctor:injuriesChanged and asks the effect engines to re-evaluate now instead of at their next tick. Module: always.


Effects

Screen effects, walk styles, pain animations, bleeding decals and drain driven by injuries and diseases.

Export Effect
SetEffectsEnabled(enabled) Turns the injury and disease effects on or off; false also clears the running ones.
RefreshEffects() Re-applies the effects from the current injuries and diseases.
ClearAllEffects() Clears screen effects, walk style, bleeding effects, sprint and jump blocks, idle pain animation. Injuries stay, so the effects come back at the next refresh.
TriggerRagdoll() Short ragdoll (about 1.5 s). Ignored when dead, already ragdolled, carried, on a stretcher or in a bed.

Module: always.


Coma and revive

The coma state lives on the client. There is no client event for entering or leaving a coma: poll IsInComa(), listen to the server event murphy_doctor:enterComa, or read the state bag murphy_doctor:coma (see State bags).

Reading

Export Returns
IsInComa() boolean
GetComaTimeRemaining() Seconds before the player may get up, 0 when not in a coma
GetCurrentDeathCause() Coma cause key of the current coma, or nil
GetCurrentDeathCauseLabel() Localized label of the current cause, or nil
GetDeathCauseLabel(cause) Localized label of any cause key (causes.unknown for an empty key)
DetermineDeathCause() Cause key guessed from the last recorded hit (weapon, melee, headshot, bleeding out), "unknown" as fallback

Module: always.

EnterComa

lua
exports.murphy_doctor:EnterComa(causeKey)

Puts the player in a coma: coma screen, camera, timer (from Config.Coma.CauseCooldowns), a guaranteed injury matching the cause, the server record (incident, Discord log, persistence) and, when Config.HelpCall.AutoCallOnComa is on, the delayed help call. causeKey is optional (auto-detected). The ped is expected to be dead already: the script detects deaths by itself, so you only need this for a custom death flow. No-op when already in a coma. Module: always.

The three ways out

Each one is a no-op when the player is not in a coma, and each one tells the server the coma is over (see AuthorizeComaExit in Server exports).

Export Use it when
ReviveByDoctor(doctorServerId) You want murphy_doctor to resurrect the ped in place at full health (with the health core). doctorServerId is only used for logs; any number works.
ExitComa() You want the normal "get up" path: the ped is revived through the framework adapter (FrameworkRevivePlayer).
CleanupComaState() Your own script already resurrected the ped. Closes the screen, camera and state only.

All three downgrade severe injuries to moderate (the player stays treatable without a permanent pain animation).

lua
-- client side of your own revive (the server called AuthorizeComaExit first)
RegisterNetEvent("myadmin:client:revive", function()
if exports.murphy_doctor:IsInComa() then
exports.murphy_doctor:ReviveByDoctor(0)
end
end)

Help calls

Export Effect
CanCallForHelp() true when in a coma or at 25 % health or less, and off cooldown (Config.HelpCall.CallCooldown). Shows the "already calling" notification while on cooldown.
RequestHelp() Sends a help call now (no check), shows the "call sent" notification and plays the shout animation. The server ignores calls closer than 10 seconds apart.
AutoCallForHelp(delaySeconds) Schedules a call after the delay (default Config.HelpCall.AutoCallDelay), only when Config.HelpCall.AutoCallOnComa is on, and only if the player is still in a coma then.
CreateSearchAreaBlip(searchArea, callId) Doctor side: draws the search area. searchArea = { x, y, z, radius }, callId optional. Replaces the previous area.
RemoveSearchAreaBlip() Removes the search area.
OpenCallBoard() Opens the help call board (the /calls screen). The server refuses players who are not available doctors. Module: Config.HelpCall.Board.

Module: always, except OpenCallBoard.

lua
-- a "call a doctor" button in your phone script
if exports.murphy_doctor:CanCallForHelp() then
exports.murphy_doctor:RequestHelp()
end

Hunger and thirst

Values go from 0 (empty) to 100 (full). The setters do nothing when Config.Metabolism.HungerThirstEnabled is false, and the getters then return 100. sync (default true) pushes the new value to the server right away; pass false when you change several values in a row and let the last call sync.

Export Effect
GetHunger(), GetThirst() Current value
IsHungerThirstEnabled() false when Config.Metabolism.HungerThirstEnabled = false
AddHunger(amount, sync) Adds amount (may be negative), clamped between Config.Metabolism.Decay.MinValue and 100
RemoveHunger(amount, sync) Subtracts a positive amount
SetHunger(value, sync) Sets the value (0 to 100)
AddThirst(amount, sync) Adds amount. While a thirst-locking disease (cholera) is symptomatic, thirst is forced to 0 instead
RemoveThirst(amount, sync) Subtracts a positive amount
SetThirst(value, sync) Sets the value (0 to 100)

The HUD refreshes automatically. Module: always.

lua
-- a meal served by your saloon script (no inventory item involved)
exports.murphy_doctor:AddHunger(40, false)
exports.murphy_doctor:AddThirst(15) -- this call syncs both values

Consumables and alcohol

Export Effect
ConsumeItem(itemName) Plays the animation and applies the client effects of a Config.Consumables.Items entry (hunger, thirst, health, drunkenness, side effects). Does not remove the item and does not run the server side (liver wear, infection roll, addiction). Blocks the calling thread for the animation. Refused in a coma or while already consuming.
IsConsuming() true during a consumption
GetAlcoholLevel() Drunkenness from 0 to 100
SetAlcoholLevel(value) Sets drunkenness, clamped to 0 to 100

To consume a real inventory item with every effect, use the server event murphy_doctor:useConsumable (see Events). Module: always.


Addiction

lua
exports.murphy_doctor:GetAddictionState() --> { [substance] = { withdrawal = boolean }, ... }

Only substances the player is dependent on are listed. Updated by the server event murphy_doctor:addictionState. Module: Config.Addiction.


Temperature

Export Returns / effect
GetBodyTemperature() Body temperature in °C (37 by default)
SetBodyTemperature(temp) Forces the temperature, clamped to 30 to 42. Updates the cold / hot conditions (Config.Temperature.cold / hot thresholds) and the HUD icon
GetTemperatureSeverityLevel() "mild", "moderate", "severe" or nil when the temperature is normal

The temperature engine keeps running after SetBodyTemperature: the environment pulls the value again over time. Module: always.


Poison

Export Effect
ApplyPoisonEffects(poisonData) Applies a poison payload { type, injuryType, severity, duration, effects, effectDelay } (the table stored under Config.Poison.MetadataKey on a poisoned item). Blocks for the delay and then the duration: call it from its own thread.
StopPoisonEffects() Antidote side: stops the screen effects, camera shake, hallucinations and slow walk. The poisoned condition and injury stay until treated.
OpenPoisonMenu(poisonType, poisonConfig) Opens the "which item do I poison" menu for a Config.Poison.PoisonItems key. The server sends the list of poisonable items the player owns. poisonConfig is accepted for compatibility and not used. No-op without Config.Poison.Enabled.
IsPoisonMenuOpen() boolean

Module: always.

lua
CreateThread(function()
exports.murphy_doctor:ApplyPoisonEffects({
type = "snake_venom", injuryType = "poisoned", severity = "moderate",
duration = 180, effectDelay = 3, effects = {},
})
end)

Doctor actions

These open the doctor screens. The server checks doctor status, distance and items on every action, whoever opened the screen.

Export Effect
StartAuscultation(targetServerId) Examines a patient. Without an id, the closest player within Config.AuscultationDistance.
StopAuscultation() Ends the examination and closes its screen.
StartTreatment(targetServerId) Opens the treatment / medical report screen. The id is required. Keeps a per-patient draft (see the cache exports).
StartSurgery(targetServerId) Opens the surgery sheet. No-op without Config.Surgery.Enabled.
CheckOwnHealth() Opens the player's own health screen.
OpenGrimoire() Opens the medical encyclopedia. No doctor check here: the item, keybind and command do their own.
OpenMyInvoices() Opens the player's unpaid invoices (reports "no invoice" when there is none or billing is off).
CacheTreatmentData(serverId, data) Stores a treatment draft for a patient.
GetTreatmentCache(serverId) The stored draft, or nil.
ClearTreatmentCache(serverId) Drops the draft.
GetCurrentTreatmentPatient() Server id of the patient whose treatment screen is open, or nil.
ResetCurrentTreatmentPatient() Forgets the current treatment patient.
RegisterPlayerInteraction() murphy_interact backend only: registers the global player interaction murphy_doctor:auscultate. Returns true on success.
UnregisterPlayerInteraction() Removes that interaction.

Module: always.

lua
-- open the treatment screen from your own target menu
exports.murphy_doctor:StartTreatment(targetServerId)

Metabolism HUD

The hunger, thirst, temperature and status indicators. The HUD shows itself each time a character's health loads, with the positions saved by the player.

Export Effect
ShowMetabolismHUD() Shows the HUD (ignored when Config.Metabolism.Enabled is false). Refreshes it when already visible.
HideMetabolismHUD() Hides it until the next ShowMetabolismHUD or character load.
RefreshMetabolismHUD() Re-sends the indicators (ignored while hidden or in edit mode).
IsMetabolismVisible() boolean
EnableMetabolismEditMode() Opens the layout editor with every indicator (same as the Config.Metabolism.Commands.EditHUD command).
SetMetabolismEditMode(enabled) Flag only: true pauses HUD refreshes.
UpdateMetabolismPositions(positions) Replaces the local copy of the positions, { [indicatorId] = { x, y } }.

Indicator ids: hungry, thirsty, temperature, bleeding, cold, hot, poisoned, injured, dirty, heavy. Module: always.

lua
-- cutscene
exports.murphy_doctor:HideMetabolismHUD()
exports.murphy_doctor:SetDamageTrackingEnabled(false)
-- ...
exports.murphy_doctor:SetDamageTrackingEnabled(true)
exports.murphy_doctor:ShowMetabolismHUD()

Notifications

Notify

lua
exports.murphy_doctor:Notify(title, message, notifType, duration, iconName, localeKey, zone)
Parameter Type Description
title string Title (defaults to the localized "Doctor")
message string Text; nothing is shown when empty
notifType string info, success, warning, error (older names such as bleeding or hunger are accepted and mapped)
duration number Milliseconds, default 5000
iconName string, optional Icon of the Murphy box (tick, cross, alert, money, shield...); picked from the type when nil
localeKey string, optional The locale key the text came from (used to pick an icon)
zone string, optional A zone of Config.NotifyZones (feed, center, left, bottom) or a position

Shows a notification exactly like the script's own, following Config.NotifyStyle (murphy, framework, native or custom). See Notifications. Module: always.

Native notifications

These call the game's notification natives directly, whatever Config.NotifyStyle says.

Export Effect
NotifySimple(message, duration) Bottom tip (default 3000 ms)
NotifyCenter(message, duration, color) Centered text; color such as "COLOR_PURE_WHITE" (default)
NotifyTop(title, subtitle, duration) Top banner (default 5000 ms)

Threshold warnings

The "you are hungry" style warnings, with built-in anti-spam (Config.Notifications.ThresholdCooldown). The script calls them on each periodic refresh (Config.Metabolism.RefreshInterval, when Config.Notifications.Enabled), whether the built-in HUD is shown or hidden, so a custom HUD does not need to call them.

Export Effect
CheckHungerThreshold(percent) Warns when crossing Config.Notifications.Thresholds.Hunger (low, critical)
CheckThirstThreshold(percent) Same for thirst
CheckHealthThreshold() Reads the live ped health (any argument is ignored); silent when dead or in a coma
CheckTemperatureThreshold(celsius) Warns below Thresholds.Temperature.cold or above hot
ResetThresholdStates() Forgets the last states and cooldowns

Module: always.


Animations

Entries of Config.Animations (shared/config_animations.lua). The catalog exports refuse to play on the local player while they are carried, on a stretcher or in a bed.

Export Returns Description
PlayDoctorAnim(key, opts) boolean Plays a catalog entry (dict/clip, scenario or phased). opts overrides the entry: { ped, flag, duration, loop, prop, propBone, propOffset, propRot, propSpawnDelay, propDespawnEarly, props }.
PlayDoctorAnimSequence(keys, opts) boolean Plays several entries in order. opts = { ped, loop }. An entry with no duration counts 3 seconds.
StopDoctorAnim(key, ped) nothing Stops the animation only if key is the one playing on that ped.
PlayAnim(dict, clip, opts) boolean Low level. opts = { ped, flag (default 49), duration (default -1), loop, key, prop, propBone, propOffset, propRot, propSpawnDelay, propDespawnEarly, props }.
PlayScenario(scenario, opts) boolean Low level. opts = { ped, duration, loop, key }.
PlayPhasedAnim(phases, opts) boolean Low level. phases = { intro = { dict, clip, flag, duration }, action = { ..., loop }, outro = { ... } }; only action is required. opts = { ped, props, key }.

props is an array of props with their own timing (spawnAt / despawnAt in milliseconds). Module: always.

lua
exports.murphy_doctor:PlayDoctorAnim("bandage")

UI screens (low level)

Direct access to the NUI screens. They only draw: they fetch nothing and validate nothing, and the matching server actions still check everything. Prefer the Doctor actions unless you feed the screens with your own data. Payload formats are detailed in NUI (user interface).

Show* exports that open a full screen take the NUI focus; the matching Hide* releases it.

Export Effect
ShowAuscultation(bodyState) Examination screen. bodyState = { heartRate, parts = { [bodyPart] = { severity, label, icon } } }
UpdateBodyState(bodyState) Updates it
HideAuscultation() Closes it
ShowHealth(healthData) Own health screen. healthData = { bodyStatus = { { label, value, color } }, parts, symptoms = { { bodyPart, condition, severity } } }
UpdateHealthData(healthData) Updates it
HideHealth() Closes it
ShowComa(cooldownSeconds, helpCallCooldownSeconds) Coma screen only (no coma state, see EnterComa)
HideComa() Closes it
ReduceHelpCooldown() Halves the remaining help call cooldown shown on the coma screen
ShowPoison(items) Poison item picker. items = { { id, name, image } }
HidePoison() Closes it
ShowMetabolism(indicators, positions) Raw HUD layer, no focus. indicators = { { id, icon, type = "percentage" or "state", percentage, visible } }
HideMetabolism() Hides the raw HUD
UpdateMetabolismData(indicators) Replaces the indicators
UpdateMetabolismIndicator(indicatorId, data) data = { percentage, visible, icon, color }, each optional
SetMetabolismPositions(positions) { [indicatorId] = { x, y } }
EnableMetabolismEdit(positions, indicators) Layout editor, takes the focus
DisableMetabolismEdit() Leaves the editor
ShowDispensary(data) Dispensary board. data = { title, members = { { id, name, rank, status, isChief } }, notes, playerIsMember, playerIsChief, treasury }
UpdateDispensaryData(data) Updates it
SetDispensaryNotes(notes) Replaces the notes
HideDispensary() Closes it
ShowTreatment(treatmentData) Treatment report. treatmentData = { doctor, patientName, patientSurname, notes, constants, causeOfComa, symptoms, prescriptions, signature, signed, reportId, ... }
UpdateTreatmentData(partialData) Merges fields
ClearTreatmentData() Empties the form
HideTreatment() Closes it
ShowArchives(patients, logo, meta) Archives. patients = { { id, name, surname, doctor, date } }, meta = { total, page, pageSize, hasMore, search, adminMode }
SetArchiveTreatment(patientId, treatmentData) Shows one report
HideArchives() Closes it
ShowGrimoire(diseases) Grimoire. diseases = { { id, name, description, symptoms, treatment, image } }
HideGrimoire() Closes it
SetLocale(locale, translations) Switches the UI language (not the Lua strings); translations optional
HideAllMenus() Closes every screen and releases the focus
GetCurrentMenu() "auscultation", "health", "coma", "poison", "dispensary", "treatment", "archives", "grimoire", "invoices", "surgery" or nil
IsNuiFocused() true while a murphy_doctor screen holds the focus

Module: always.


Last updated: November 20, 2026