CS_DEATHSCREEN

An advanced death screen system. Includes respawn timer, bleed-out mechanic, knockout system, stabilization, dispatch notifications, and Discord webhooks.


Installation

start CS_Deathscreen
  • Delete or comment out the following lines:

ClearTimecycleModifier()
SetTimecycleModifier("REDMIST_blend")
SetTimecycleModifierStrength(0.7)
SetExtraTimecycleModifier("fp_vig_red")
SetExtraTimecycleModifierStrength(1.0)
SetPedMotionBlur(PlayerPedId(), true)
StartDeathTimer()
StartDeathCam()
StartDistressSignal()
  • For the newest ESX version your function should now look like this:

function OnPlayerDeath()
  isDead = true
  ESX.CloseContext()
  -- ClearTimecycleModifier()
  -- SetTimecycleModifier("REDMIST_blend")
  -- SetTimecycleModifierStrength(0.7)
  -- SetExtraTimecycleModifier("fp_vig_red")
  -- SetExtraTimecycleModifierStrength(1.0)
  -- SetPedMotionBlur(PlayerPedId(), true)
  TriggerServerEvent('esx_ambulancejob:setDeathStatus', true)
  -- StartDeathTimer()
  -- StartDeathCam()
  -- StartDistressSignal()
end

Configuration

Config.lua

This configuration file controls death screen behavior, respawn rules, stabilization, knockout system, item removal, and notifications.

General Settings
  • Locale – Language setting. Example: "EN".

  • reviveEvent – Revive event to trigger. Default: "esx_ambulancejob:revive".

  • SeeThroughVersion – true / false – Removes blur effect.

  • RespawnTime – Time (seconds) until respawn. Example: 300.

  • RespawnPrice – Price for respawning. Example: 2000.

  • BleedOut – Time (seconds) until bleed-out. Example: 600.

  • MuteOnDeath – true / false – Automatically mute players when dead.

  • VoiceScript – Voice system: "pma" or "salty".

  • ResyncInterval – Interval (ms) for resync attempts. Example: 2000.

  • DispatchInterval – Interval (ms) for dispatch notifications. Example: 5000.

  • RespawnPoints – Define hospital/respawn locations. Example: Pillbox.

Item & Weapon Loss
  • CustomRemoveItem – true / false – Enable custom item removal function.

  • RemoveAfterRespawnOrBleedout – Settings to remove:

    • Cash

    • Black money

    • Items

    • Weapons

  • KeepItems – List of excluded items. Example: { "id_card", "radio" }.

Stabilize System
  • Enabled – true / false – Enables stabilization mechanic.

  • UnmuteWhenStabilized – true / false – Unmutes players when stabilized.

  • AddedTime – Extra seconds added to timer. Example: 60.

  • CommandName – Stabilize command. Default: /stabilize.

  • DefaultKeyForCommand – Default key. Example: "Y".

  • NeedItem – true / false – Require item.

  • stabilizeItem – Item name. Example: "bandage".

  • removeItem – true / false – Remove item after use.

  • AnimationTime – Duration of stabilization animation. Example: 10000.

  • animationLib / animationAnim – Animation settings.

Knockout System
  • Enabled – true / false – Enable knockouts.

  • KnockoutTime – Time (seconds) until wake-up. Example: 60.

  • reviveEventAfterKnockout – Event triggered when knockout ends.

  • CanSendDispatch – true / false – Allow dispatch alerts when knocked out.

  • SetHealthAfterRespawn – Player health after knockout. Example: 120.

  • knockoutHashes – Weapon hashes that trigger knockout. Example: ["WEAPON_UNARMED"].

Key Bindings
  • Exports

    exports['cs_deathscreen']:setPlayerMuted(boolean) 
    -- Mute/unmute a player
    
    exports['cs_deathscreen']:changeDescription(string) 
    -- Change the death screen description

    Both are also available as events:

    • cs_deathscreen:setPlayerMuted

    • cs_deathscreen:changeDescription

    ➡️ For all other available exports and events, see README.md


Webhook Configuration

webhook.lua
WebhookDeathscreen = {
    Colors = {
        ["Green"] = 5763719,
        ["Red"]   = 15548997,
    },

    Dispatch   = "", -- Webhook for dispatch events
    BleededOut = "", -- Webhook for bleed-out logs
    Stabilize  = "", -- Webhook for stabilization logs
}

Tip: Leave the URL as an empty string "" if you do not want the webhook to trigger for that event.


Notes
  • UI colors can be changed in: html/assets/css/config.css

  • Locales included: English (EN) and German (DE).

  • Supports both old and new ESX versions.


Support

If you have any further questions, open a ticket on our discord server: discord.gg/core-services

Last updated

Was this helpful?