NullSect
Systems nominal

Docs / Deathscreen / Installation

Installation — ns-deathscreen

  1. Put the ns-deathscreen folder into your resources (e.g. resources/[nullsect]/ns-deathscreen).

  2. 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
    
  3. qbx_ambulancejob only: hide its own death text, otherwise both screens draw. In qbx_ambulancejob/client/setdownedstate.lua add the helper above displayRespawnText and one line at the top of displayRespawnText and handleLastStand:

    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.

  4. Optional: Config.Locale = 'tr', respawn time and EMS settings in config.lua.

  5. Restart the server. No database setup is needed.

Verification

CheckExpected
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=generic in the ready line → qbx_medical is not started before this resource, or Config.Medical is 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.blockWhenEmsOnline is on and a medic is on duty, or another resource refused the respawn in its own qbx_medical hook (e.g. jail). Turn on Config.Debug to see why.
  • No EMS alert → the medic's job is not in Config.Ems.jobs or is off duty.

Cart

Your cart is empty.