🕵️♂️Usage
3.1 Death Event
When a player dies (
CEventNetworkEntityDamage→onPlayerDeath), the NUI overlay appears showing:Killer name (or “Suicide”)
Bleed-out timer
Dispatch button cooldown
3.2 Controls
Freecam Toggle
F
Enter/exit free camera within radius.
Sync Character
U
Resync character to current death position.
Dispatch Call
G
Send ambulance alert via configured dispatch API.
3.3 Dispatch Integration
QB-Ambulance: triggers
hospital:server:ambulanceAlertESX-Ambulance: triggers
esx_ambulancejob:onPlayerDistressCustom: insert your own phone or dispatch export in
client/dispatch().
3.4 Respawning
Manual: Player selects a respawn point from
Config.RespawnPoints.Auto: When bleed-out timer expires,
onRespawn()fires—implement custom spawn logic.HUD: The deathscreen hides your HUD via
hideHud()and restores it viashowHud()on revive.
3.5 Revive Events
The script listens for configured revive events (e.g.
esx_ambulancejob:revive,hospital:client:RespawnAtHospital) and closes the deathscreen, resets timers, and restores the HUD.
Last updated