⚙️Configuration

Configuration guide of Advanced Warning Zone System.


Config.lua

STG = {}

STG.Framework = "auto" -- Determines which framework to use: auto, esx, qb, qbox
STG.Language = "en" -- en, de, fr, es, pt, it, nl, pl, sv, ar, jp, zh
STG.Locales = {}

-- 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 Configuration
STG.ZoneTemplates = {
    {
        id = 1,
        name = "Shop Robbery",
        image = "img/Zones/ShopRobbery.png",
        fullImage = "img/Zones/ShopRobbery-Full.png",
        description = "Create your own zone where shop robbery will happen",
        detailedDescription = "There are two dozen stores in the state of San Andreas. In the GTA 5 story mode, only 19 of them can be robbed — these are 24/7 convenience stores, alcohol stores and mini-markets at gas stations. To reach 100 percent in the statistics of passing the game, it is enough to rob only one. You can rob a store an unlimited number of times — this is one of the easiest ways to make money. However, you can not count on large incomes: the average amount of revenue that a raider can receive is from 300 to 1200 dollars.",
        defaultRank = "1",
        defaultSize = "25",
        defaultTime = "1"
    },
    {
        id = 2,
        name = "Car Accident",
        image = "img/Zones/CarAccident.png",
        fullImage = "img/Zones/CarAccident-Full.png",
        description = "Create your own zone where a car accident will happen",
        detailedDescription = "There are two dozen stores in the state of San Andreas. In the GTA 5 story mode, only 19 of them can be robbed — these are 24/7 convenience stores, alcohol stores and mini-markets at gas stations. To reach 100 percent in the statistics of passing the game, it is enough to rob only one. You can rob a store an unlimited number of times — this is one of the easiest ways to make money. However, you can not count on large incomes: the average amount of revenue that a raider can receive is from 300 to 1200 dollars.",
        defaultRank = "1",
        defaultSize = "25",
        defaultTime = "1"
    },
    {
        id = 3,
        name = "Bank Robbery",
        image = "img/Zones/BankRobbery.png",
        fullImage = "img/Zones/BankRobbery-Full.png",
        description = "Create your own zone where bank robbery will happen",
        detailedDescription = "There are two dozen stores in the state of San Andreas. In the GTA 5 story mode, only 19 of them can be robbed — these are 24/7 convenience stores, alcohol stores and mini-markets at gas stations. To reach 100 percent in the statistics of passing the game, it is enough to rob only one. You can rob a store an unlimited number of times — this is one of the easiest ways to make money. However, you can not count on large incomes: the average amount of revenue that a raider can receive is from 300 to 1200 dollars.",
        defaultRank = "1",
        defaultSize = "25",
        defaultTime = "1"
    },
    {
        id = 4,
        name = "Hostages",
        image = "img/Zones/Hostages.png",
        fullImage = "img/Zones/Hostages-Full.png",
        description = "Create your own zone where hostage situation will happen",
        detailedDescription = "There are two dozen stores in the state of San Andreas. In the GTA 5 story mode, only 19 of them can be robbed — these are 24/7 convenience stores, alcohol stores and mini-markets at gas stations. To reach 100 percent in the statistics of passing the game, it is enough to rob only one. You can rob a store an unlimited number of times — this is one of the easiest ways to make money. However, you can not count on large incomes: the average amount of revenue that a raider can receive is from 300 to 1200 dollars.",
        defaultRank = "1",
        defaultSize = "25",
        defaultTime = "1"
    },
    {
        id = 5,
        name = "Shootout",
        image = "img/Zones/Shootout.png",
        fullImage = "img/Zones/Shootout-Full.png",
        description = "Create your own zone where shootout will happen",
        detailedDescription = "There are two dozen stores in the state of San Andreas. In the GTA 5 story mode, only 19 of them can be robbed — these are 24/7 convenience stores, alcohol stores and mini-markets at gas stations. To reach 100 percent in the statistics of passing the game, it is enough to rob only one. You can rob a store an unlimited number of times — this is one of the easiest ways to make money. However, you can not count on large incomes: the average amount of revenue that a raider can receive is from 300 to 1200 dollars.",
        defaultRank = "1",
        defaultSize = "25",
        defaultTime = "1"
    },
    {
        id = 6,
        name = "Raid",
        image = "img/Zones/Raid.png",
        fullImage = "img/Zones/Raid-Full.png",
        description = "Create your own zone where raid will happen",
        detailedDescription = "There are two dozen stores in the state of San Andreas. In the GTA 5 story mode, only 19 of them can be robbed — these are 24/7 convenience stores, alcohol stores and mini-markets at gas stations. To reach 100 percent in the statistics of passing the game, it is enough to rob only one. You can rob a store an unlimited number of times — this is one of the easiest ways to make money. However, you can not count on large incomes: the average amount of revenue that a raider can receive is from 300 to 1200 dollars.",
        defaultRank = "1",
        defaultSize = "25",
        defaultTime = "1"
    }
}

Last updated