Patient States
Healthy, injured, unconscious and dead.
coe_emsHealth & EMS
Patient states, revive, treat and medical records on top of coe_businesses
coe_corecoe_databasecoe_loggingcoe_businessescoe_dispatch
coe_ems
5 exports · 1 command
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Plug-and-play health and EMS on top of coe_businesses: staff, ranks and salaries live in the ems-category business (hospitals). Patient states healthy → injured → unconscious → dead, with bleed-out decided by the server, revive, treatment and medical records by rank permission, and /respawn for the dead.
The client only reports what the game shows; dying and reviving are server decisions.
Healthy, injured, unconscious and dead.
ems.revive, ems.treat and ems.records.
Treatment history per character.
A person down creates an EMS call.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Operates strictly within layers L1–L3 (domain, HAL, and server-authoritative application logic). Visual interactions and management flows are delegated to centralized ecosystem apps (coe_ui / coe_tablet), guaranteeing 0.00 ms idle client overhead in FiveM DX12.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coe_ems']:Records(medicSource, patientCharacterId, limit)
→ any
Returns a patient's (character's) medical record. Requires the caller to hold ems.records in an EMS-category business.
| Parameter | Type |
|---|---|
medicSource | any |
patientCharacterId | any |
limit | any |
local result = exports['coe_ems']:Records(medicSource, patientCharacterId, limit)exports['coe_ems']:Revive(medicSource, targetSource, detail)
→ any
Export server Revive (server/main.lua).
| Parameter | Type |
|---|---|
medicSource | any |
targetSource | any |
detail | any |
local result = exports['coe_ems']:Revive(medicSource, targetSource, detail)exports['coe_ems']:SetState(source, state)
→ any
Allows coe_needs, coe_hud, and coe_admin to set the state (for example, damage caused by another system).
| Parameter | Type |
|---|---|
source | any |
state | any |
local result = exports['coe_ems']:SetState(source, state)exports['coe_ems']:State(source)
→ any
Export server State (server/main.lua).
| Parameter | Type |
|---|---|
source | any |
local result = exports['coe_ems']:State(source)exports['coe_ems']:Treat(medicSource, targetSource, detail)
→ any
Export server Treat (server/main.lua).
| Parameter | Type |
|---|---|
medicSource | any |
targetSource | any |
detail | any |
local result = exports['coe_ems']:Treat(medicSource, targetSource, detail)/respawn
Respawns at the hospital after dying (when allowed by EMS).