Customization

We provide advanced and flexible set of customization options:

Basic options
Config = {}

Config.GameName = 'Rope Game'
Config.Fee = 100

Config.EnableTeamFormation = false
Config.TimeForTeamFormation = 10000
Config.ChooseTeamAutomaticallyIfNotChoosen = true

Config.SyncAttachFix = false

Config.MLO_FirstSpawn = {
    vec3(2050.862, 3415.649, -1.081), -- Player 1
    vec3(2051.72, 3415.68, -1.081), --  Player 2
    vec3(2052.58, 3415.798, -1.081), --  Player 3
    vec3(2053.502, 3415.881, -1.081), -- Player 4

    vec3(2050.41, 3415.058, -1.081), -- Player 5
    vec3(2051.555, 3414.954, -1.081), -- Player 6
    vec3(2052.645, 3414.825, -1.081), -- Player 7
    vec3(2053.526, 3414.787, -1.081), -- Player 8

    vec3(2050.375, 3413.949, -1.081), -- Player 9
    vec3(2051.474, 3414.101, -1.081), -- Player 10
    vec3(2052.365, 3414.268, -1.081), -- Player 11
    vec3(2051.91, 3415.553, -1.081), -- Player 12
}
Config.MLO_ChooseTeamA = vec3(2066.516, 3414.628, -1.081)
Config.MLO_ChooseTeamB = vec3(2037.138, 3415.117, -1.081)

Config.MLO_CENTER = vec3(2052.03, 3383.35, 17.825)

Config.DeathZoneRadius = 7.0 -- from center to team platform

Config.PitfallTeamA = vec3(2058.181, 3383.295, 17.952) -- Red
Config.PitfallTeamB = vec3(2046.017, 3383.211, 17.952) -- Green
Config.Rope = {
    startFromOffset = 2.0,
    distanceBetweenPlayers = 1.0,
}
Config.MinPlayers = 2 -- Default: 2
Config.MaxPlayers = 12
Config.KeepEvenNumberOfParticipantsPerTeam = false

-- Game over coords
Config.GameSuccessCoords = vec3(2123.95, 3298.85, 56.55)
Config.GameFailedCoords = vec3(2065.04, 3285.5, 44.89)

-- Start point
Config.StartPoint = vector3(2096.186, 3311.165, 45.649) -- Lobby point
Config.StartPointSize = 7.5 -- radius
Config.StartPointColor = {149, 69, 53, 125} -- red, green, blue, alpha
Config.StartPointBlip = {
    Enabled = true,
    Id = 1, -- https://docs.fivem.net/docs/game-references/blips/
    Color = 10,
    Scale = 0.75,
}
Config.StartPointEnabled = true -- you can use command

Config.GameStartInterval = 10000 -- miliseconds
Config.GameDuration = 50000 -- miliseconds

-- Enable NPCs
Config.EnableNPCs = {
    GuardsNPC = {
        {vec3(2074.834, 3384.589, 17.957), 90.0}, -- team1
        {vec3(2074.777, 3381.922, 17.957), 90.0}, -- team1
        {vec3(2029.201, 3382.155, 17.957), -90.0}, -- team2
        {vec3(2029.237, 3384.61, 17.957), -90.0}, -- team2
        {vec3(2049.331, 3421.244, -1.081), -166.0}, -- gate
        {vec3(2054.795, 3421.168, -1.081), -166.0}, -- gate
    },
}

Config.ChangePlayerSkin = true
Config.PlayerOutfits = {
    ["male"] = {
        -- Player 001 (open jacket + tshirt)
        {
            [4] = {5, 0}, -- pants_1, pants_2
            [6] = {43, 0}, -- shoes_1, shoes_2
            
            [8] = {0, 1}, -- tshirt_1, tshirt_2
            [11] = {74, 0}, -- torso_1, torso_2

            [1] = {0, 0}, -- mask_1, mask_2
            -- [2] = {0, 0}, -- hair
            [3] = {0, 0}, -- arms, arms_2
            [5] = {0, 0}, -- bags_1, bags_2
            [7] = {0, 0}, -- chain_1, chain_2
            [9] = {0, 0}, -- bproof_1, bproof_2
            [10] = {0, 0}, -- decals_1, decals_2
        },
    },
    ["female"] = {
        {
            [4] = {66, 0},
            [6] = {80, 0},
            [8] = {2, 0},
            [11] = {147, 0},
            
            [1] = {0, 0},
            -- [2] = {0, 0},
            [3] = {0, 0},
            [5] = {0, 0},
            [7] = {0, 0},
            [9] = {0, 0},
            [10] = {0, 0},
        },
    }
}

Config.Cutscene = {
    Enabled = true, -- true/false - Set to false if you have crash or anticheat issue 
    Sequence = {
        {
            position = vector3(2040.19, 3373.23, 19.83),
            rotation = { pitch = 0.0, roll = 0.0, yaw = 0.0 },
            transitionTime = 5000,
            waitTime = 0
        },
        {
            position = vector3(2062.20, 3372.86, 19.83),
            rotation = { pitch = 0.0, roll = 0.0, yaw = 0.0 },
            transitionTime = 0,
            waitTime = 0
        },
    }
}

Config.InGameTick = function(playerPed)
    -- You can add/remove here buttons to block during the game
    DisableControlAction(2, 37, true) -- Disable Weaponwheel
    DisablePlayerFiring(playerPed, true) -- Disable firing
    DisableControlAction(0, 45, true) -- Disable reloading
    DisableControlAction(0, 24, true) -- Disable attacking
    DisableControlAction(0, 263, true) -- Disable melee attack 1
    DisableControlAction(0, 140, true) -- Disable light melee attack (r)
    DisableControlAction(0, 142, true) -- Disable left mouse button (pistol whack etc)
end

-- Experimental:
Config.FeeItem = '' -- 'item_level3_access' -- Player should have the item
Config.RewardItem = '' -- 'item_next_game_access' -- Player receives the item when win the game

-------------------------
-- Uncomment for tests --
-------------------------
-- Config.Debug = true
-- Config.Cutscene.Enabled = false
-- Config.MinPlayers = 1
-- Config.CreateFakePlayers = true
-- Config.AllowOppositePulling = true

Advanced options
-- game-edition/default.lua
GAME_EDITION = {
    ---------
    -- MLO --
    ---------
    Mlo = {
        Hash = `sqlevel3_coll`,
    },

    ----------
    -- Rope --
    ---------- 
    Rope = {
        Hash = `sqlevel3_rope`,
    },

    -------------------
    -- Guard Clothes --
    -------------------
    GuardOutfits = {
        {
            [1] = {4, 0},
            [4] = {19, 0},
            [3] = {16, 0},
            [11] = {65, 0},
            [6] = {25, 0},
            [8] = {15, 0},
        },
        {
            [1] = {4, 1},
            [4] = {19, 0}, 
            [3] = {16, 0},
            [11] = {65, 0},
            [6] = {25, 0},
            [8] = {15, 0},

        },
        {
            [1] = {4, 2},
            [4] = {19, 0}, 
            [3] = {16, 0},
            [11] = {65, 0},
            [6] = {25, 0},
            [8] = {15, 0},
        },
    },
}

Last updated