[1] System

Notifications

Notification = {
        Type = 'Map', -- Options: 'Chat', 'Map', 'Custom'
        CustomClientEventName = '',
}

This section of the configuration allows you to customize the Notification system used in the script. Three options are listed:

  1. 'Chat' --> Will send the messages in the chat. This system is preset in the script.

  2. 'Map' --> Will send the messages above the map. This system is preset in the script.

  3. 'Custom' --> Will send the messages to your server's custom notification system. This notification system will require you to add the event's name in the CustomClientEventName section.

If you are using the Custom notification system, then make sure you enter a CLIENT event, not a server event.


Discord Webhook Logging

DiscordWebhooks = { -- Leave empty for no logging. 
        LocationBlackout = "",
        RadiusBlackout = "",
}

This section toggles the Discord Logging feature. Enter a Discord webhook into the "" to enable the logging feature. When a player triggers a blackout, the webhook will send a logging message in the Discord chat.


Clear All Blackouts Command

Admin_Blackout_Reset = { -- '/blackoutresetall' command will clear all active blackouts.  
        Enabled = true, 
        ACE_Restricted = true, -- Restricted to '5S_AdminPermissions'
}

This command will clear all active blackouts in the server. We suggest it be restricted to server administrators through ACE Permissions.


Custom Events

 After_Blackout_Event = '', -- Enter the name of your custom server event that you want to be triggered after a LOCATION BLACKOUT is triggered (start/stop).

RETURNS

This SERVER event returns these parameters in this specific order:

IsBlackoutEnabled [true/false], BlackoutCoordinates, BlackoutRadius, BlackoutName

Blackout Blip

-- Set to true if you want a blip on all player's maps of the blackout zone (both radius and location blackouts).
Main.BlackoutBlip = true

Last updated