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:


Configuration

Config.lua

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

chevron-rightGeneral Settingshashtag
  • 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.

chevron-rightItem & Weapon Losshashtag
  • 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" }.

chevron-rightStabilize Systemhashtag
  • 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.

chevron-rightKnockout Systemhashtag
  • 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"].

chevron-rightKey Bindingshashtag
  • Exports

    Both are also available as events:

    • cs_deathscreen:setPlayerMuted

    • cs_deathscreen:changeDescription

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


Webhook Configuration

chevron-rightwebhook.luahashtag
circle-info

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


chevron-rightNoteshashtag
  • 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-servicesarrow-up-right

Last updated