Configuration

Configuration is divided into multiple files for simplicity.

🖥️ shared/client.lua

Config = {}
Config.MaxConnections = 48
Config.RoutingBucket = 1050
Config.WinScreen = { Time = 5000 }
Config.VotingTime = 15000
Config.Interaction = {
    {
        Coords = vec4(-284.24, -1920.66, 29.95, 319.22),
        Heading = 90.0,
        PedModel = "a_m_m_business_01",
        AnimDict = "amb@world_human_hang_out_street@male_b@idle_a",
        AnimName = "idle_a"
    }
}
Config.Blips = { sprite = 567, colour = 4, scale = 0.8 }
Config.LiveScore = { Enable = true, MaxDisplay = 3, UpdateInterval = 10000 }
Config.KillFeed = { Enable = true }
Config.MaxLeaderboardPlayers = 10
Config.Traffic = false

[!NOTE] Traffic = false will disable NPC traffic in arenas for optimized performance.

📊 shared/client/cfg_elo-system.lua

Config['ELO'] = {
    StartingPoints = 0,
    PointsTable = { [1] = 1000, [2] = 500, [3] = 250 },
    NegativePoints = -10,
    Rankings = {
        { name = "Bronze",  min = 0, max = 5000, image = "url/bronze.png" },
        { name = "Silver",  min = 5001, max = 15000, image = "url/silver.png" },
        { name = "Gold",    min = 15001, max = 25000, image = "url/gold.png" },
        { name = "Diamond", min = 25001, max = 999999, image = "url/diamond.png" }
    }
}

[!TIP] Adjust PointsTable to balance ELO progression for your server.

🎨 shared/client/cfg_main-menu.lua

Config['Menu'] = {
    ['main_menu'] = {
        Player = { Coords = vec4(897.82, -3160.87, -97.22, 171.61) },
        SpotLightCoords = vec4(897.23, -3165.52, -97.12, 348.09),
        Pos = vec4(896.61, -3168.54, -96.55, 346.31),
        Rot = {180.0, 180.0, 173.0},
        FromFov = 75.0,
        ToFov = 5.0,
        DeleteCam = false,
    },
    Logo = "https://example.com/logo.png",
    Locales = {
        ['main_menu'] = 'Main Menu',
        ['play'] = 'Play',
        ['leaderboard'] = 'Leaderboard',
        ['gungame_info'] = 'Climb the ranks—Eliminate & Upgrade!',
        ['map_voting'] = 'Map Voting'
    }
}

Last updated