[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:
'Chat' --> Will send the messages in the chat. This system is preset in the script.
'Map' --> Will send the messages above the map. This system is preset in the script.
'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
CustomClientEventNamesection.
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).-- This custom permissions check is for the Control Panel feature (NOT the commands).
function Custom_Permissions_Check()
-- FORMAT: return exports.RESOURCEname.FUNCTIONname()
endThis function allows you to add your own permissions check system for the Control Panel feature.
Make sure your export returns a TRUE or FALSE value.
MUST be a CLIENT export. NOT server.
-- EXAMPLE:
function Custom_Permissions_Check()
return exports.5SInventorySystem.hasKey()
endAdvancedBlackout:TriggerRadiusBlackoutServer event that allows you to connect your server's scripts to Advanced Blackout!
Arguments: xCoordinate, yCoordinate, zCoordinate, Radius
Trigger this server event with all four arguments to create a radius blackout. To delete the radius blackout created through this method, you need to trigger this event again with the same arguments (specifically the x and y coordinates).
FORMAT:
TriggerServerEvent("AdvancedBlackout:TriggerRadiusBlackout", XCOORDINATE, YCOORDINATE, ZCOORDINATE, RADIUS)EXAMPLE:
TriggerServerEvent("AdvancedBlackout:TriggerRadiusBlackout", 1334.6, 9123.1, 34.1, 100)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 = trueLast updated