CS_DEATHTIMEOUT

A death timeout system for FiveM that temporarily blocks player actions after death, with whitelists, notifications, and webhook logging.


Installation

start CS_DEATHTIMEOUT

Configuration

Config.lua

This configuration file defines the behavior of the deathtimeout system.

chevron-rightGeneral Settingshashtag
  • reviveEvent: Event to trigger for reviving the player. Example: "esx_ambulancejob:revive"

  • deathtimeout: Time in seconds until the player exits deathtimeout. Example: 60

  • displayAtTop: true / false – Whether the UI text is displayed at the top or bottom of the screen.

chevron-rightCommands & Permissionshashtag
  • ClearCommand: Enable command to clear deathtimeout. Example: true

  • ClearCommandName: Name of the command. Example: "dtclear"

  • AllowedGroups: Groups allowed to use the clear command. Example: {"owner", "admin"}

chevron-rightWhitelistshashtag
  • WhitelistedGroups: Groups exempt from deathtimeout. Example: {"none"}

  • WhitelistedJobs: Jobs exempt from deathtimeout. Example: {"lsmd", "ambulance"}

chevron-rightTimeout Conditions & Blocked Actionshashtag
  • startTimeout: Function to define conditions when deathtimeout should start

  • BlockedActions: Function to block certain actions (weapon usage, drive-by, controls) while in deathtimeout


Exports & Events

chevron-rightexports.luahashtag

Usage Examples:

  • End timeout for yourself:

  • End timeout for another player (server-side):

  • Check if a player is still in death timeout:


Notifications & Locales

chevron-rightNotification Systemhashtag

CustomClientSideNotification(msg) → Shows messages via ESX.ShowNotification or your custom notification Script

UI Text:

  • TextPt1: "Du bist noch"

  • Minutes: "Minuten"

  • TextPt2: "kampfunfähig"

chevron-rightNotification Messageshashtag
  • WhitelistedJob: Job exemption notification

  • WhitelistedGroup: Group exemption notification

  • MissingPermissions: Not authorized

  • ClearedSelfDeathtimeout: Self deathtimeout cleared

  • ClearedDeathtimeout: Deathtimeout cleared for another player

  • PlayerNotOnline: Player ID not online

  • NoIDServer: Invalid server ID

  • PlayerNotInDeathtimeout: Player not in deathtimeout


chevron-rightWebhookshashtag
  • WebhookOnStart: Log script start

  • WebhookWhenTried: Log attempts to clear deathtimeout

  • Titles and messages for console, client, and own actions are included with player info, Discord, and group

circle-info

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

chevron-rightFeatureshashtag
  • Automatically block player actions after death for configurable time

  • Whitelist certain jobs and groups

  • Notifications for timeout remaining

  • Clear timeout via command with permission control

  • Discord webhook logging for all relevant events

  • Configurable UI position (top/bottom)

  • English and German locale support


Support

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

Last updated