CS_PANICBUTTON
A panic button system allowing local and global alerts for allowed jobs, with UI, notifications, and Discord webhook logging.
Installation
start CS_DEATHTIMEOUTConfiguration
Config.lua
This configuration file sets up how the panic button works for your server.
General Settings
UseCustomNotification:
true / false– Use a custom notification function.CustomNotification(receiver, msg): Function to display notifications.
Menu & Button Options
EnableMenu:
true / false– Display NativeUI menu.LocalPaniceEnabled:
true / false– Enable local panic if menu is disabled.GlobalPaniceEnabled:
true / false– Enable global panic if menu is disabled
Job & Permissions
AllowedJobs: Jobs allowed to trigger the panic button. Example:
{"ambulance", "police", "fib", "doj"}GlobalPanic: Jobs that get notified of global panic. Example:
{"police", "ambulance", "fib", "doj"}
Item Requirements
NeedItem:
true / false– Whether a panic button item is required.ItemName: Name of the required item. Example:
"panicbutton"AllowedWhenDead:
true / false– Allow panic button usage when dead.
Key Bindings
DefaultPanicbuttonKey: Key for menu (
"M")DefaultLocalPanicbuttonKey: Key for local panic (
"U")DefaultGlobalPanicbuttonKey: Key for global panic (
"I")
Sound & Waypoints
SoundEnabled:
true / false– Play alarm soundSetWaypoint:
true / false– Automatically set waypoint for all available units
Notifications & Locales
UI
UIHeading:"Panic Button"UISecondHeading:"Wähle die Art des Panic Buttons"UILocalButton:"Lokaler Panic Button"UILocalDescription:"Drücke den Panic Button, um deine Fraktion zu alarmieren"UIGlobalButton:"Globaler Panic Button"UIGlobalDescription:"Drücke den Panic Button, um alle EMS Fraktion zu alarmieren"
Errors & Messages
CooldownActive:"Der Cooldown ist aktiv"NotHasAllowedJob:"Du hast nicht den richtigen Job, um den Panic Button zu benutzen!"NeedItem:"Du brauchst einen Panic Button, um dies zu tun!"BlipName:"Panicbutton"
Notifications
Local Notification:
LocalNotificationTitle:"Lokaler Panic Button"LocalNotificationMessage:"%s %s hat einen lokalen Panic Button ausgelöst!"
Global Notification:
GlobalNotificationTitle:"Globaler Panic Button"GlobalNotificationMessage:"%s %s hat einen globalen Panic Button ausgelöst!"
Webhooks
WebhookLocalButtonPressed:"**%s** (%s) hat einen **lokalen Panic Button** ausgelöst.\nJob: **%s**\nRang: **%s**\nDiscord: **<@%s>**"WebhookGlobalButtonPressed:"**%s** (%s) hat einen **globalen Panic Button** ausgelöst.\nJob: **%s**\nRang: **%s**\nDiscord: **<@%s>**"
Webhook Configuration
webhook.lua
Logs all local and global panic button triggers to Discord.
Tip: Leave the URL as an empty string "" if you do not want the webhook to trigger for that event.
Features
Local and global panic button alerts
Custom notifications or UI integration
Optional item requirement for panic button
Keybinding configurable for menu, local, and global triggers
Sound alerts and automatic waypoint setting
Discord webhook logging for all button presses
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