# Customization

<details>

<summary>Basic options</summary>

```lua
-------------------------
-- Basic Configuration --
-------------------------
Config.Fee = 100
Config.MinimumParticipants = 1
Config.StartPoint = vec3(2080.37, 3342.61, 46.86)
Config.StartPointEnabled = true
Config.GameDuration = 120000 
Config.GameStartInterval = 10000
Config.Locale = "en"
Config.GameName = "Dalgona Game"
Config.StartPointSize = 7.5
Config.StartPointColor = {238, 169, 184, 125}
Config.StartPointBlip = {
    Id = 1,
    Color = 8,
    Scale = 0.75,
    Enabled = true,
}
Config.ShowWinnerMessageGlobally = false
Config.MinigameComplexityCheck = 0.0035

---------------------------
-- Participant Animations --
---------------------------
Config.ParticipantAnimations = {
    {'dalgona@animation', 'idle_dalgona'},
    {'dalgona@animation', 'idle_dalgona_2'},
    {'dalgona@animation', 'idle_dalgona_3'},
}

--------------------------
-- Teleport Coordinates --
--------------------------
Config.SpawnCoords = {
    GameStarted = {
        vec3(1173.15, 7151.82, 2247.62),
    },
    GameSuccess = { 
        vec3(2123.95, 3298.85, 56.55),
    },
    GameFailed = { 
        vec3(2060.04, 3285.5, 44.89),
    }
}

--------------------
-- Player Clothes --
--------------------
Config.PlayerOutfits = {
    ["male"] = {
        {
            -- pants_1, pants_2
            [4] = {5, 0},
             -- shoes_1, shoes_2
            [6] = {43, 0},
            -- tshirt_1, tshirt_2
            [8] = {0, 1},
            -- torso_1, torso_2
            [11] = {74, 0},
            -- mask_1, mask_2
            [1] = {0, 0},
            -- arms, arms_2
            [3] = {0, 0},
            -- bags_1, bags_2
            [5] = {0, 0},
            -- chain_1, chain_2
            [7] = {0, 0},
            -- bproof_1, bproof_2
            [9] = {0, 0},
            -- decals_1, decals_2
            [10] = {0, 0},
        },
    },
    ["female"] = {
        {
            [4] = {66, 0},
            [6] = {80, 0},
            [8] = {2, 0},
            [11] = {147, 0},
            [1] = {0, 0},
            [3] = {0, 0},
            [5] = {0, 0},
            [7] = {0, 0},
            [9] = {0, 0},
            [10] = {0, 0},
        },
    }
}
```

</details>

<details>

<summary>Advanced options</summary>

```lua
-------------------------
-- Player Tick Options --
-------------------------
Config.EnableGodmode = true
Config.InGameTick = function(playerPed)
    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

---------------------
-- Clothes options --
---------------------
Config.AllowCustomPeds = false
Config.ChangePlayerSkin = true
Config.KeepGameClothesForWinners = true
Config.UsePedModelsInsteadOutfitsForPlayers = false
Config.PlayerPeds = {"u_m_y_zombie_01", "u_m_y_mani", "u_m_y_juggernaut_01", "u_m_m_streetart_01", "ig_rashcosvki", "ig_claypain"}
Config.UsePedModelsInsteadOutfitsForGuards = false
Config.GuardPeds = {"hc_gunman", "hc_driver", "s_m_y_swat_01"}
Config.GuardOutfits = {
    {
        [1] = {4, 2},
        [4] = {19, 0}, 
        [3] = {16, 0},
        [11] = {65, 0},
        [6] = {25, 0},
        [8] = {15, 0},
    },
}

-----------------
-- NPC options --
-----------------
Config.EnableNPCs = {
    EnableGuards = true,
    EnableParticipants = true,
}

---------------------------
-- Game Location Options --
---------------------------

Config.GunCoords = { 
    vec3(1117.00, 7154.95, 2259.44),
    vec3(1116.89, 7176.52, 2259.37),
    vec3(1116.89, 7214.59, 2259.37),
    vec3(1117.00, 7193.01, 2259.44),
    vec3(1177.62, 7249.56, 2259.37),
    vec3(1177.70, 7227.99, 2259.44),
    vec3(1177.70, 7190.06, 2259.44),
    vec3(1177.62, 7211.63, 2259.37),
    vec3(1177.70, 7152.09, 2259.44),
    vec3(1177.62, 7173.67, 2259.37),
    vec3(1117.00, 7230.30, 2259.44),
    vec3(1116.89, 7251.88, 2259.37),
}
Config.ZoneCoords = {
    GameCenter = vector3(2188.94, 3494.73, 0.79),
    GameWidth = 34.0,
    GameLength = 34.0,
    GameHeading = 0.0,
}

----------------------
-- Cutscene Options --
----------------------
Config.Cutscene = {
    Enabled = true, -- true/false - Set to false if you have crash or anticheat issue 
    Sequence = {
        {
            position = vector3(2189.03, 3494.75, 2.10),
            rotation = { pitch = 0.0, roll = 0.0, yaw = 180.0 },
            transitionTime = 5000,
            waitTime = 0
        },
        {
            position = vector3(2188.81, 3502.22, 4.10),
            rotation = { pitch = 0.0, roll = 0.0, yaw = 0.0 },
            transitionTime = 0,
            waitTime = 0
        },
    }
}
```

</details>

<details>

<summary>Manual Mode Options</summary>

```lua
Config.ManualMode = {
    -------------
    -- Command --
    -------------
    Command = {
        Enabled = true, -- Enable/disable command
        Name = 'dalgona-game-manual', -- Command name
        Cooldown = 30000, -- Usage cooldown in milliseconds
        Duration = 120000, -- Game duration in milliseconds
    },

    ---------------------------------------
    -- Indicator above head on win/lose ---
    ---------------------------------------
    WinLoseIndicatorAboveHeadEnabled = true,
    WinLoseIndicatorDuration = 30000, -- milliseconds

    ----------------------------
    -- Animations on win/lose --
    ----------------------------
    WinAnimation = {
        Enabled = true,
        List = {
            {"rcmfanatic1celebrate", "celebrate"},
        },
        Duration = 5000,
    },
    LoseAnimation = {
        Enabled = true,
        List = {
            {"random@arrests@busted", "idle_a"},
            {"anim@heists@ornate_bank@hostages@hit", "hit_loop_ped_b"},
        },
        Duration = 10000,
    },

    ---------------------------------
    -- Auto-kill player if he lose --
    ---------------------------------
    AutokillEnabled = true,

    -----------------------------------
    -- Guard NPC in front of player ---
    -----------------------------------
    SpawnGuardNearPlayer = {
        Enabled = true,
        Networked = true,
    },
}
```

</details>
