🕵️‍♂️Usage

3.1 Death Event

  • When a player dies (CEventNetworkEntityDamageonPlayerDeath), the NUI overlay appears showing:

    • Killer name (or “Suicide”)

    • Bleed-out timer

    • Dispatch button cooldown

3.2 Controls

Action
Key (Default)
Description

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:ambulanceAlert

  • ESX-Ambulance: triggers esx_ambulancejob:onPlayerDistress

  • Custom: insert your own phone or dispatch export in client/dispatch().

3.4 Respawning

  1. Manual: Player selects a respawn point from Config.RespawnPoints.

  2. Auto: When bleed-out timer expires, onRespawn() fires—implement custom spawn logic.

  3. HUD: The deathscreen hides your HUD via hideHud() and restores it via showHud() 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