# Configuration

```lua
Config = {
    
    Framework = "esx", -- esx or qbcore or oldesx

    Safezones = { -- Zone where NOT spawn zombies
        {coords = vector3(400.92, 2324.0, 68.53), radius = 6950.0},
        --{coords = vector3(2045.6934, 3453.8525, 43.8377), radius = 1000.0}, 
    },

    General = {

        minDst = 2, maxDst = 30, -- distance to spawn zombies
        spawnWait = 5, -- delay to spawn zombies (5 seconds by default) (v.2.8)
        ZombiesBlipMap = true, BlipName = "Zombie",
        maxZombies = 40,  -- max zombies spawned per player/area
        armorHpDamageByZombie = 5, -- DEFAULT: 1 hit by zombie, remove 5HP (with armor) (v.2.8)
        HpDamageByZombie = 10, -- DEFAULT: 1 hit by zombie, remove 10HP  (without armor) (v.2.8)

        vehicleAttack = true, -- Attack player in car?
        SpawnOnlyWhenRunning = false, -- Spawn zombies when player only do noise: sprint/run? (v.2.8)

        density = { -- Total: 2.0 
            ["zombie_normal"] = 1.40,
            ["zombie_with_kevlar"] = 0.35,
            ["zombie_fast"] = 0.15,
            ["zombie_with_bomb"] = 0.10,
        },
    },

    MoneyAccount = "cash", -- 'bank' || 'cash' || 'black_money'
    RandomMoney = {
        Min = 1000,
        Max = 3200,
    },


    Rewards = {

        {name = "weapon_snspistol", label = "SNS Pistol", chance = 50},
        {name = "bandage", label = "Bandage", chance = 80},
        {name = "armor", label = "Armor", chance = 80},

    },

    AnimationLootType = "simple", -- Animations: 'baganim' || 'simple' || 'none'

    Zombies = {
        ["zombie_normal"] = {
            models = {
                "a_m_y_downtown_01",
                "a_m_y_acult_02",
                "a_m_m_skidrow_01",
                "a_m_y_genstreet_01",
            },
            randomComponents = true,
            randomProps = true,
            clipset = "move_m@drunk@verydrunk",
            headshot = true,
            health = 200,
            armor = 0,
        },
        ["zombie_with_kevlar"] = {
            models = {
                "s_m_y_cop_01",
                "s_m_y_swat_01",
                "s_m_m_armoured_01",
            },
            randomComponents = true,
            randomProps = true,
            headshot = false,
            clipset = "move_m@drunk@verydrunk",
            health = 300,
            armor = 100,
        },
        ["zombie_fast"] = {
            models = {
                "a_m_m_hillbilly_02",
                "a_m_o_acult_02",
            },
            randomComponents = true,
            randomProps = true,
            headshot = true,
            clipset = "move_characters@orleans@core@",
            health = 100,
            armor = 0,
            fast = true,
            object = {
                model = "p_gasmask_s",
                bone = 31086,
                offset = vector3(0, 0, 0),
                rotation = vector3(0, -90, 180)
            },
        },
        ["zombie_with_bomb"] = {
            models = {
                "s_m_m_doctor_01",
                "s_m_m_scientist_01",
            },
            randomComponents = true,
            randomProps = true,
            headshot = true,
            clipset = "move_m@drunk@verydrunk",
            health = 200,
            armor = 0,
            object = {
                model = "prop_gascyl_01a",
                bone = 24816,
                offset = vector3(0.15, -0.220, 0),
                rotation = vector3(0, 88, 6)
            },
        },
    },

    --- v.2.8
    ZombieSound = true,
    ZombieSounds = {
        "GroupZombiesGrowling",
        --"zombie-attack-1",
    },

}

Translations = {
    ["drawtextLoot"] = "~r~[E]~w~ Loot",
    ["loot_when_dead"] = "~r~Não podes dar loot porque estás morto.",
    ["loot_when_incar"] = "~r~NMão podes dar loot a zumbis enquanto estiveres dentro do veículo.",
    ["get_reward"] = "Loot: %s",
    
}

function Notify(message)

	--TriggerEvent('codem-notification:Create', message, 'info', nil, 5000)

    -- Another example of popular notifications

	--exports['mythic_notify']:SendAlert('inform', message)
	--ESX.ShowNotification(message)
	--exports['Roda_Notifications']:showNotify(message, 'info', 5000)
	exports['okokNotify']:Alert("Zombies", message, 5000, 'info')
	--exports['mythic_notify']:SendAlert('inform', message)
	--QBCore.Functions.Notify(message, 'success')

end

Config.Debug = true -- test mode
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://loureiro-stoned.gitbook.io/docs/scripts-guides/zombie-system/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
