CS_DEATHTIMEOUT V2
A deathtimeout script making users unable to harm other players.
Last updated
Was this helpful?
A deathtimeout script making users unable to harm other players.
Last updated
Was this helpful?
Locale
: Sets the language for the messages. Options are:
"EN"
for English
"DE"
for German
Each command defines a specific functionality. Two commands are predefined:
dtstart
Starts a deathtimeout for a specified player.
cs_deathtimeout.canStartDeathtimeout(): Set conditions to prevent the deathtimeout from appearing.
cs_deathtimeout.BlockedActions(playerid, playerpedid): Edit blocked actions during the deathtimeout
NotificationFunction(title, msg, type): The notification function used.
Make sure to change the Notification function to your notify trigger!
Or else the script will not work properly.
Different types of notifications available:
NotifyTypes: Defines types like info
, error
, success
, warning
.
Translations for different languages:
LocalesDeathtimeout: Contains translations for English (EN
) and German (DE
).
Determines whether an old or new version of ESX is being used and initializes the shared object accordingly. If you want to, you can of course change the shared object to fit your needs.
The script offers 3 webhooks.
dtstart
dtclear
dtclearradius
If you do not want a webhook to be sent, just leave the string empty. Like this:
In this example, you would not be notified when a player starts a local deathtimeout.
If you have any further questions, open a ticket on our discord server: discord.gg/core-services