🔑Configuration

Config = Config or {}

Config.NetworkedCandies = true     -- Deactivate if you want to have candies locally instead of synced(Usefull for AntiCheat purposes)
Config.SpawnInterval = 0.1         -- How long it takes to spawn new halloween candies in minutes
Config.SpawnCount = 10             -- How many candy spawn on each interval "tick"
Config.MinimumSpawnDistance = 35.0 -- The minimum distance between each item
Config.SpawnRadius = 120.0         -- The radius the candy wil spawn in
Config.MaxCandyObjectsInRange = 15 -- The max amount of candy in the current spawn radius

Config.ZombieDamage = 15.0

Config.CandyProps = {
    [`reh_Prop_REH_Lantern_PK_01a`] = true,
    [`reh_Prop_REH_Lantern_PK_01b`] = true,
    [`reh_Prop_REH_Lantern_PK_01c`] = true,
}

Config.HalloweenWeather = true
Config.ZombieWaves = {
    maxActive = 2,
    candyPerKill = 500,
    spawnInterval = 10000,
    zombiePeds = {
        [`u_m_y_zombie_01`] = true
    },
    blip = {
        sprite = 833,
        scale = 1.5,
        color = 5,
        label = "Zombie-Welle"
    },
    marker = {
        type = 21,
        scale = vector3(.75, .75, .75),
        rgba = {
            r = 0,
            g = 197,
            b = 255,
            a = 100
        },
        bobUpAndDown = false,
        faceCamera = false,
        rotate = true,
        distance = 50.0,
        interactDistance = 2.0
    },
    networkedPeds = true,
    zombieSpeed = 2.0,
    waves = {
        [1] = {
            maxZombies = 5,
            time = 60000 -- in ms
        },
        [2] = {
            maxZombies = 10,
            time = 60000 -- in ms
        },
        [3] = {
            maxZombies = 15,
            time = 60000 -- in ms
        },
        [4] = {
            maxZombies = 20,
            time = 60000 -- in ms
        }
    },
    zones = {
        {
            radius = 75.0,
            coords = vector3(2361.8188, 2584.2939, 46.6676)
        }
    }
}

Config.Shop = {
    useNPC = true,
    useKeyboard = true,
    NPC = {
        ped = "u_m_y_zombie_01",
        position = vector4(-388.2578, -364.7148, 31.3003, 169.8675),
        blip = {
            sprite = 833,
            scale = 0.8,
            color = 0,
            label = "Halloween-Shop"
        }
    },
    keyboardKey = "F7",
    items = {
        {
            name = "money",
            type = "account",
            amount = 10000,
            price = 2500
        },
        {
            name = "weapon_pistol",
            type = "weapon",
            ammo = 100,
            price = 5000,
            label = "Pistole"
        },
        {
            name = "bread",
            type = "item",
            amount = 100,
            price = 2500,
            label = "Brot"
        }
    }
}

function Config.HelpNotify(message)
    exports["rs_hud_v2"]:SendHelpnotify("E", message)
end

---@diagnostic disable-next-line: duplicate-set-field
function Config.NotifyInfo(message)
    exports["rs_hud_v2"]:SendNotify("info", "REVOULTION | Halloween", message, 5000)
end

Last updated