Installation
1. Add the resource
Put the gs-deathscreen folder in your resources folder, then add it to server.cfg below ox_lib, your framework and your ambulance script:
server.cfg
ensure ox_lib
ensure qbx_core # or qb-core / es_extended
ensure qbx_ambulancejob # your ambulance script
ensure gs-deathscreen
warning
Don't rename the folder. The ambulance script changes check for a resource named exactly gs-deathscreen.
2. Turn off your ambulance script's own death screen
Otherwise two death screens show at the same time. Make the small change for your ambulance script on the Ambulance script setup page and skip the others.
3. Restart and test
Restart your server, go down in-game and check that only the Gravity death screen shows.
Everything else (timers, prices, colours) is optional and lives in config.lua. See Configuration.
Preview the screen in a browser
You can try the screen without starting the server. Open web/index.html through any local web server and add these to the URL:
| Parameter | What it does |
|---|---|
?phase=dead | Start on the dead screen instead of the downed screen |
&t=10 | Timer length in seconds |
&hold=ekg, &hold=segments or &hold=classic | Try the respawn button styles |