Events and state bags ​
State bags ​
np_medic publishes isDead while downed or dead, isDowned, downed and inLastStand while downed, plus a
compact npMedic summary containing stage, blood, pain, limp, bleeding and elapsed time. np_hud, np_phone and
np_inventory integrations use the compatible state flags.
Server lifecycle events ​
| Event | Arguments |
|---|---|
np_medic:state:changed |
(citizenId, { stage, previous, reason }) |
np_medic:downed |
(src, state) |
np_medic:playerDowned |
(src, state) compatibility event for np_dispatch |
np_medic:died |
(src, state) |
np_medic:revived |
(src, state) |
np_medic:medic:callCreated / callUpdated / callResolved |
Local notruf call object |
MDT event feed ​
When the character has opted in, np_medic emits a local np_medic:event envelope:
lua
{
v = 1, eventId = '...', at = '2026-10-10T12:00:00Z', type = 'injury.add',
citizenId = '...', patientRef = 'local:...',
consent = { mdt = true, emergency = false }, payload = { ... }
}
Typed aliases carry the same envelope. Consumers should use the shared event and deduplicate by eventId. Consent
is off by default. Emergency override is not implemented. See MDT consumer contract.