CS_DEATHTIMEOUT
A death timeout system for FiveM that temporarily blocks player actions after death, with whitelists, notifications, and webhook logging.
Installation
start CS_DEATHTIMEOUTConfiguration
Config.lua
This configuration file defines the behavior of the deathtimeout system.
General Settings
reviveEvent: Event to trigger for reviving the player. Example:
"esx_ambulancejob:revive"deathtimeout: Time in seconds until the player exits deathtimeout. Example:
60displayAtTop:
true / false– Whether the UI text is displayed at the top or bottom of the screen.
Commands & Permissions
ClearCommand: Enable command to clear deathtimeout. Example:
trueClearCommandName: Name of the command. Example:
"dtclear"AllowedGroups: Groups allowed to use the clear command. Example:
{"owner", "admin"}
Whitelists
WhitelistedGroups: Groups exempt from deathtimeout. Example:
{"none"}WhitelistedJobs: Jobs exempt from deathtimeout. Example:
{"lsmd", "ambulance"}
Timeout Conditions & Blocked Actions
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
exports.lua
Usage Examples:
End timeout for yourself:
End timeout for another player (server-side):
Check if a player is still in death timeout:
Notifications & Locales
Notification System
CustomClientSideNotification(msg) → Shows messages via ESX.ShowNotification or your custom notification Script
UI Text:
TextPt1:"Du bist noch"Minutes:"Minuten"TextPt2:"kampfunfähig"
Notification Messages
WhitelistedJob: Job exemption notificationWhitelistedGroup: Group exemption notificationMissingPermissions: Not authorizedClearedSelfDeathtimeout: Self deathtimeout clearedClearedDeathtimeout: Deathtimeout cleared for another playerPlayerNotOnline: Player ID not onlineNoIDServer: Invalid server IDPlayerNotInDeathtimeout: Player not in deathtimeout
Webhooks
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
Tip: Leave the URL as an empty string "" if you do not want the webhook to trigger for that event.
Features
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-services
Last updated