⚙️Configuration
Configuration guide of Advanced Warning Zone System.
:root {
--yellow-primary: #39fffc;
--yellow-secondary: #49f6ff;
--green-primary: #9DFF50;
--gradient-yellow: linear-gradient(180deg, var(--yellow-primary) 0%, var(--yellow-secondary) 100%);
--gradient-green: linear-gradient(131.37deg, #7DF553 1.85%, #6D931D 121.15%);
}STG = STG or {}
STG.Webhooks = {
screenshot = "https://discord.com/api/webhooks/XXXX",
log = "https://discord.com/api/webhooks/XXXX"
}STG = {}
STG.Locales = {}
STG.Language = "en" -- en, de, fr, es, pt, it, nl, pl, sv, ar, jp, zh, he, fi
STG.Debug = false -- Enable debug messages
-- UI Settings
STG.ServerName = "STG"
STG.SubServerName = "SCRIPTS"
STG.Command = {
active = true,
command = "warnzone"
}
STG.Key = {
active = true,
key = "F7"
}
STG.MaximumZoneTime = 200 -- In Minutes, 0 = Unlimited
STG.CustomNotify = false
STG.CustomNotifyFunction = function(title, msg)
-- Your custom notify function (client)
end
STG.Announce = function(msg)
-- Your announce function (server)
end
STG.AllPlayersAllowed = false
STG.AllowedJobs = {
{
name = 'police',
allowedRanks = {
1,
2
}
}
}
-- Zone Templates
Citizen.CreateThread(function()
STG.ZoneTemplates = {
{
id = 1,
name = "Shop Robbery",
image = "img/Zones/ShopRobbery.png",
description = "Create your own zone where shop robbery will happen",
detailedDescription = getMessage('shop_description'),
defaultRank = "1", -- max 5
defaultSize = "25", -- meters
defaultTime = "1" -- minutes
},
{
id = 2,
name = "Car Accident",
image = "img/Zones/CarAccident.png",
description = "Create your own zone where a car accident will happen",
detailedDescription = getMessage('car_description'),
defaultRank = "2", -- max 5
defaultSize = "25", -- meters
defaultTime = "2" -- minutes
},
{
id = 3,
name = "Bank Robbery",
image = "img/Zones/BankRobbery.png",
description = "Create your own zone where bank robbery will happen",
detailedDescription = getMessage('bank_description'),
defaultRank = "3", -- max 5
defaultSize = "25", -- meters
defaultTime = "3" -- minutes
},
{
id = 4,
name = "Hostages",
image = "img/Zones/Hostages.png",
description = "Create your own zone where hostage situation will happen",
detailedDescription = getMessage('hostage_description'),
defaultRank = "4", -- max 5
defaultSize = "25", -- meters
defaultTime = "4" -- minutes
},
{
id = 5,
name = "Shootout",
image = "img/Zones/Shootout.png",
description = "Create your own zone where shootout will happen",
detailedDescription = getMessage('shootout_description'),
defaultRank = "5", -- max 5
defaultSize = "50", -- meters
defaultTime = "5" -- minutes
},
{
id = 6,
name = "Raid",
image = "img/Zones/Raid.png",
description = "Create your own zone where raid will happen",
detailedDescription = getMessage('raid_description'),
defaultRank = "5", -- max 5
defaultSize = "100", -- meters
defaultTime = "6" -- minutes
}
}
end)Last updated