Browse docs
Self-Diagnose
Reference for Self-Diagnose in ambulancejob.
Self-Diagnose
OpenSelfDiagnose()
- Purpose: Opens the full diagnose UI on the local player, allowing them to inspect and treat their own injuries. Requires
Config.SelfDiagnose.enabled = true. WhenConfig.SelfDiagnose.requireMedicJobistrue(default), only on-duty medics can use this export. - Returns:
boolean:truewhen the diagnose UI was opened successfully.string?: Reason when the call fails —"disabled","no_permission","busy","dead".
local success, reason = exports["sky_ambulancejob"]:OpenSelfDiagnose()
if not success then
print("Self-diagnose failed: " .. (reason or "unknown"))
end
This export can also be triggered via the
/selfdiagnose chat command (configurable in Config.SelfDiagnose.command) or via the Self-diagnose radial menu action.