Installation — ns-deathscreen
-
Put the
ns-deathscreenfolder into your resources (e.g.resources/[nullsect]/ns-deathscreen). -
Add to
server.cfg(after ox_lib, your framework and qbx_medical / qbx_ambulancejob):ensure ns-deathscreen add_ace group.admin ns-deathscreen.admin allow -
qbx_ambulancejob only: hide its own death text, otherwise both screens draw. In
qbx_ambulancejob/client/setdownedstate.luaadd the helper abovedisplayRespawnTextand one line at the top ofdisplayRespawnTextandhandleLastStand:local function externalDeathScreen() return GetResourceState('ns-deathscreen') == 'started' end local function displayRespawnText() if externalDeathScreen() then return end -- (rest unchanged) local function handleLastStand() if externalDeathScreen() then return end -- (rest unchanged)When ns-deathscreen is stopped, qbx_ambulancejob's text comes back by itself.
-
Optional:
Config.Locale = 'tr', respawn time and EMS settings inconfig.lua. -
Restart the server. No database setup is needed.
Verification
| Check | Expected |
|---|---|
| Server console | [ns-deathscreen:SV] [INFO] ready (framework=qbox, medical=qbx_medical, dispatch=qbx_ambulancejob, …) |
/deathpreview down and /deathpreview dead (admin) | the screen with sample data; keys only say "Preview"; /deathpreview off closes it |
| Get shot down by another player | "Knocked down", bleed-out timer, who / what / distance / last hit, G and H keys |
| Hold G | "Signal sent to EMS."; on-duty medics get the alert; G waits for the cooldown |
| Die (or hold H after 60 s) | "You are dead", flat line, respawn countdown; E works only when it is over |
Revive (/revive, EMS) | the screen closes, the picture is back to normal |
Troubleshooting
medical=genericin the ready line → qbx_medical is not started before this resource, orConfig.Medicalis set.- Two texts on screen → step 3 is missing.
qbx_medical has no registerHook export→ old qbx_medical; the respawn timer is then display only.- E does nothing after the timer →
Config.Respawn.blockWhenEmsOnlineis on and a medic is on duty, or another resource refused the respawn in its own qbx_medical hook (e.g. jail). Turn onConfig.Debugto see why. - No EMS alert → the medic's job is not in
Config.Ems.jobsor is off duty.