πŸ› οΈsv_config.lua

-- β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— 
-- β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
-- β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
-- β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
-- β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
-- β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•  β•šβ•β•β•β•  β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•
ServerConfig = {}
ServerConfig.ScriptDelay = 2500 -- In milliseconds, how long should the script wait before starting?
ServerConfig.EnableCommands = {
    -- By request, I've allowed you to enable/disable certain commands
    -- Some servers disable the Gang Command in favor of the Gang Tablet that was added in v2.4.0
    gang = true,
}

ServerConfig.Logs = {
    enabled = true,
    services = {
        ["fm-logs"] = {
            enabled = false,
        },
        ["ox_lib"] = {
            enabled = false,
        },
        ["discord"] = {
            enabled = true,
            webhook = "CHANGEME",
            webhookName = "Gang System",
        }
    }
}

ServerConfig.Presence = {
    -- Presence is the system that allows Gang Members to receive loyalty for being in a zone
    enabled = true, -- Do you want to allow Gang Members to receive loyalty for being in a zone?
    time = 10, -- In minutes, how long does the player need to be in a zone before receiving loyalty?
    amount = 25, -- How much loyalty should a gang receive?
    onlyControlledTurfs = false, -- If enabled, players will only receive loyalty for being in controlled turfs, not all turfs
}

ServerConfig.AdminCheck = {
    useFrameworkAdmin = false, -- This will use the framework's admin check instead of the custom one (Community Bridge)
    allowedCitizenIDs = {
        -- THIS IS WHERE YOU ADD CITIZEN IDs
        D1AJLCZ4 = true
    },
    license = {
        -- THIS IS WHERE YOU ADD LICENSE
        ["license:f4680f921295d2726ba0af57b04ae9dccb8e6706"] = true,
    },
    license2 = {
        -- THIS IS WHERE YOU ADD LICENSE2
        ["license2:7c096fac86cb1656a9c2a5dc127052b32c8d0d16"] = true,
    },
}

ServerConfig.GangProtectionsQuery = function()
    return [[
    INSERT IGNORE INTO `gang_protections` (`gang_zone`, `protection_amount`) VALUES
        ('ALTA', 0),
        ('BHAMCA', 0),
        ('BLANCA', 0),
        ('BURTON', 0),
        ('CHAMH', 0),
        ('CHIL', 0),
        ('CHUM', 0),
        ('CMSW', 0),
        ('CYPRE', 0),
        ('DAVIS', 0),
        ('DELPE', 0),
        ('DTVINE', 0),
        ('EAST_V', 0),
        ('EBURO', 0),
        ('ELYSIAN', 0),
        ('GRAPES', 0),
        ('HARMO', 0),
        ('HAWICK', 0),
        ('KOREAT', 0),
        ('LMESA', 0),
        ('MIRR', 0),
        ('MORN', 0),
        ('MOVIE', 0),
        ('PALETO', 0),
        ('PALFOR', 0),
        ('PBOX', 0),
        ('RANCHO', 0),
        ('RICHM', 0),
        ('ROCKF', 0),
        ('SANAND', 0),
        ('SANDY', 0),
        ('SLAB', 0),
        ('STRAW', 0),
        ('TEXTI', 0),
        ('VCANA', 0),
        ('VESP', 0),
        ('WINDF', 0),
        ('WVINE', 0);
    ]]
end

Last updated