config.lua
Preview
```lua
--[[
--------------------------------------------------------------------------------
Stoned Zombies V2
Build [10/09/2024]
--------------------------------------------------------------------------------
π― Thank you for your support! | Made with love by Stoned DEV Team. β€
π TEBEX | https://stoned-scripts.tebex.io/
β
Features list | https://forum.cfx.re/t/esx-qb-vrp-zombie-system-sync/5152072
β If you need any help, please contact us with Discord:
https://discord.gg/7qRtF4uTs3
--------------------------------------------------------------------------------
]]--
Config = {
-- SELECT YOUR FRAMEWORK [esx | qbcore | oldesx | vrp] ------------------------------------------------------------------------------------------
Framework = "esx",
-- ZOMBIES DO NOT SPAWN HERE [You can have as many as you wish | β Safezones override Redzones] [NEW] -------------------------------------------
Safezones = {
{coords = vector3(400.92, 2324.0, 68.53), radius = 500.0},
{coords = vector3(720.82, 174.0, 38.53), radius = 1700.0},
},
-- ZOMBIES SPAWN HERE [You can have as many as you wish | β If you want zombies all around the map, increase "radius" value] [NEW] --------------
Redzones = {
{coords = vector3(2045.6934, 3453.8525, 43.8377), radius = 1000.0},
{coords = vector3(921.47, 6344.0, 81.55), radius = 1200.0},
},
-- ENABLE/DISABLE BLIPS FOR SAFEZONES & REDZONES ------------------------------------------------------------------------------------------------
BlipRedandSafeZones = true,
-- ZOMBIES [FUNCTIONALITY SETTINGS] -------------------------------------------------------------------------------------------------------------
ZombieSettings = {
sync = true,
minDst = 5, maxDst = 20, -- DISTANCE TO SPAWN ZOMBIES FROM PLAYER [MIN | MAX] [NEW]
DistanceToLoot = 1.3, -- DISTANCE TO BE ABLE TO LOOT DEAD ZOMBIES [NEW]
spawnOnlyAtNight = false, -- ZOMBIES SPAWN ONLY AT 24:00 TO 06:00 [NEW]
spawnWaitDay = 8, -- DELAY TO SPAWN ZOMBIES AT DAY (in seconds) [NEW]
spawnWaitNight = 5, -- DELAY TO SPAWN ZOMBIES AT NIGHT (in seconds) [NEW]
maxZombies = 10, -- MAX ZOMBIES SPAWNED PER CLIENT | PLAYER [NEW]
armorHpDamageByZombie = 5, -- ZOMBIE DAMAGE WITH ARMOR
HpDamageByZombie = 10, -- ZOMBIE DAMAGE WITHOUT ARMOR
NoiseLvLSpawn = 10.0, -- NOISE LEVEL REQUIRED TO START SPAWNING ZOMBIES [RUNNING, SHOOTING, DRIVING, ETC] [NEW]
vehicleAttack = true, -- VEHICLE CAN RECEIVE DAMAGE IF THE PLAYER IS INSIDE [NEW]
ZombiesSound = false, -- ZOMBIES SOUND SYSTEM | β REQUIRED [stoned-zombies]\[optional]\xsound
ZombiesBlipMap = true, BlipName = "Zombie", -- ZOMBIES BLIP [NEW]
},
-- ZOMBIES [GENERAL SETTINGS] ------------------------------------------------------------------------------------------------------------------
General = {
EnableLootSystem = true, -- ENABLE LOOT SYSTEM
InteractType = "drawtext3D", -- [drawtext3D | textUI] [NEW]
MarkerBlip = true, MarkerSprite = 0, MarkerColor = {223, 55, 55}, MarkerSize = 1.1, -- ZOMBIES LOOT MARKER | LIST [https://docs.fivem.net/docs/game-references/markers/]
XpSystem = false, -- IF "TRUE", EDIT IN "config/cl_config.lua" YOUR XP SYSTEM [NEW]
density = { -- MAX [2.00] | β IF YOU ENABLE "eletric" or "smoke" MODE TO ANY TYPE OF ZOMBIE, KEEP VALUES AS LOW AS POSSIBLE | β HIGHER VALUES MIGHT CRASH YOUR SERVER AND GAME.
["zombie_normal"] = 1.00,
["zombie_with_kevlar"] = 0.25,
["zombie_fast"] = 0.35,
["zombie_with_bomb"] = 0.30,
["zombie_with_smoke"] = 0.10,
},
},
RandomMoney = {
Min = 1000, -- MIN. MONEY YOU CAN GET FROM LOOT
Max = 3200, -- MAX. MONEY YOU CAN GET FROM LOOT
},
Rewards = {
{name = "weapon_pistol", label = "Pistol", chance = 50, amount = {min = 1, max = 2}}, -- SELECT AMOUNT PER ITEM [NEW]
{name = "bread", label = "Bread", chance = 80, amount = {min = 1, max = 5}},
{name = "water", label = "Water Bottle", chance = 80, amount = {min = 1, max = 3}},
},
AnimationLootType = "advanced", -- [advanced | baganim | simple | none]
-- ZOMBIES [CUSTOMIZATION] --------------------------------------------------------------------------------------------------------------------
Zombies = {
["zombie_normal"] = {
models = {
"u_m_y_zombie_01", -- β DEFAULT
"g_m_m_zombie_01", -- β DEFAULT
"a_f_y_juggalo_01", -- π° ADDON
},
randomComponents = true, -- RANDOM CLOTHES COMPONENTS
randomProps = true, -- RANDOM PROPS ATTACHED TO ZOMBIE
walkAnim = true, -- WALK ANIMATION | βRequirement: sv_enforceGameBuild 3258 (server.cfg) & recent artifacts
headshot = true, -- ZOMBIE DIE BY HEADSHOT
health = 200, -- ZOMBIE HEALTH
armor = 0, -- ZOMBIE ARMOR
speed = 1, -- SPEED FOR ZOMBIES BASED BY LEVEL: [ 1 = SLOW | 2 = AVERAGE | 3 = FAST ]
-- β IF YOU WANT TO ENABLE "eletric" OR "smoke" MODE, BE CAREFUL WITH "density" CONFIG AND DO NOT MIX MODES. MODE APPLIES TO EVERY [zombie_normal] SPAWNED. TOO MANY ZOMBIES WITH THESE MODES MIGHT CRASH YOUR SERVER AND GAME.
eletric = false, eletricType = "ent_dst_elec_fire_sp", eletricDistance = 2.0, eletricDamage = 3, ragdollTime = 5, electricEffectCooldown = 30, -- ELECTRIC ZOMBIE MODE [NEW]
smoke = false, smokeDamage = 2, smokeDistance = 5.0, smokeDamageDelay = 5.0, smokeType = "exp_grd_bzgas_smoke", -- TOXIC ZOMBIE MODE [ "exp_grd_bzgas_smoke" | β "exp_grd_grenade_smoke" (THIS ONE MIGHT CRASH YOUR GAME) ] [NEW]
sound = "sounds/zombie-attack-1.mp3", -- YOUTUBE URL | "sounds/your_sound_name.mp3" [or .ogg] | β To use xsound, put sound files in "xsound\html\sounds"
soundDistance = 20.0, -- DISTANCE RANGE TO BE ABLE TO HEAR THIS SOUND
soundVolume = 10, -- VOLUME FOR SOUND
},
["zombie_with_kevlar"] = {
models = {
"s_m_y_cop_01", -- β DEFAULT
"s_m_y_swat_01", -- β DEFAULT
"s_m_m_armoured_01", -- β DEFAULT
"a_m_m_beach_01", -- π° ADDON
},
randomComponents = true, -- RANDOM CLOTHES COMPONENTS
randomProps = true, -- RANDOM PROPS ATTACHED TO ZOMBIE
headshot = false, -- ZOMBIE DIE BY HEADSHOT
walkAnim = true, -- WALK ANIMATION | βRequirement: sv_enforceGameBuild 3258 (server.cfg) & recent artifacts
health = 300, -- ZOMBIE HEALTH
armor = 100, -- ZOMBIE ARMOR
speed = 2, -- SPEED FOR ZOMBIES BASED BY LEVEL: [ 1 = SLOW | 2 = AVERAGE | 3 = FAST ]
-- β IF YOU WANT TO ENABLE "eletric" OR "smoke" MODE, BE CAREFUL WITH "density" CONFIG AND DO NOT MIX MODES. MODE APPLIES TO EVERY [zombie_with_kevlar] SPAWNED. TOO MANY ZOMBIES WITH THESE MODES MIGHT CRASH YOUR SERVER AND GAME.
eletric = false, eletricType = "ent_dst_elec_fire_sp", eletricDistance = 2.0, eletricDamage = 3, ragdollTime = 5, electricEffectCooldown = 30, -- ELECTRIC ZOMBIE MODE [NEW]
smoke = false, smokeDamage = 2, smokeDistance = 5.0, smokeDamageDelay = 5.0, smokeType = "exp_grd_bzgas_smoke", -- TOXIC ZOMBIE MODE [ "exp_grd_bzgas_smoke" | β "exp_grd_grenade_smoke" (THIS ONE MIGHT CRASH YOUR GAME) ] [NEW]
sound = "sounds/Group-Of-Zombies-Growling1.ogg", -- YOUTUBE URL | "sounds/your_sound_name.mp3" [or .ogg] | β To use xsound, put sound files in "xsound\html\sounds"
soundDistance = 20.0, -- DISTANCE RANGE TO BE ABLE TO HEAR THIS SOUND
soundVolume = 10, -- VOLUME FOR SOUND
},
["zombie_fast"] = {
models = {
"a_m_m_hillbilly_02", -- β DEFAULT
"a_m_o_acult_02", -- β DEFAULT
"a_m_m_eastsa_02", -- π° ADDON
},
randomComponents = true, -- RANDOM CLOTHES COMPONENTS
randomProps = true, -- RANDOM PROPS ATTACHED TO ZOMBIE
headshot = true, -- ZOMBIE DIE BY HEADSHOT
walkAnim = true, -- WALK ANIMATION | βRequirement: sv_enforceGameBuild 3258 (server.cfg) & recent artifacts
health = 100, -- ZOMBIE HEALTH
armor = 0, -- ZOMBIE ARMOR
speed = 3, -- SPEED FOR ZOMBIES BASED BY LEVEL: [ 1 = SLOW | 2 = AVERAGE | 3 = FAST ]
-- β IF YOU WANT TO ENABLE "eletric" OR "smoke" MODE, BE CAREFUL WITH "density" CONFIG AND DO NOT MIX MODES. MODE APPLIES TO EVERY [zombie_fast] SPAWNED. TOO MANY ZOMBIES WITH THESE MODES MIGHT CRASH YOUR SERVER AND GAME.
eletric = false, eletricType = "ent_dst_elec_fire_sp", eletricDistance = 2.0, eletricDamage = 3, ragdollTime = 5, electricEffectCooldown = 30, -- ELECTRIC ZOMBIE MODE [NEW]
smoke = false, smokeDamage = 2, smokeDistance = 5.0, smokeDamageDelay = 5.0, smokeType = "exp_grd_bzgas_smoke", -- TOXIC ZOMBIE MODE [ "exp_grd_bzgas_smoke" | β "exp_grd_grenade_smoke" (THIS ONE MIGHT CRASH YOUR GAME) ] [NEW]
object = { -- SELECT AN OBJECT FOR "randomComponents" or "randomProps"
model = "p_gasmask_s",
bone = 31086,
offset = vector3(0, 0, 0),
rotation = vector3(0, -90, 180)
},
sound = "https://www.youtube.com/watch?v=s82sGCaTCxw", -- YOUTUBE URL | "sounds/your_sound_name.mp3" [or .ogg] | β To use xsound, put sound files in "xsound\html\sounds"
soundDistance = 20.0, -- DISTANCE RANGE TO BE ABLE TO HEAR THIS SOUND
soundVolume = 10, -- VOLUME FOR SOUND
},
["zombie_with_bomb"] = {
models = {
"s_m_m_doctor_01", -- β DEFAULT
"s_m_m_scientist_01", -- β DEFAULT
},
randomComponents = true, -- RANDOM CLOTHES COMPONENTS
randomProps = true, -- RANDOM PROPS ATTACHED TO ZOMBIE
headshot = true, -- ZOMBIE DIE BY HEADSHOT
walkAnim = true, -- WALK ANIMATION | βRequirement: sv_enforceGameBuild 3258 (server.cfg) & recent artifacts
health = 200, -- ZOMBIE HEALTH
armor = 0, -- ZOMBIE ARMOR
speed = 1, -- SPEED FOR ZOMBIES BASED BY LEVEL: [ 1 = SLOW | 2 = AVERAGE | 3 = FAST ]
-- β IF YOU WANT TO ENABLE "eletric" OR "smoke" MODE, BE CAREFUL WITH "density" CONFIG AND DO NOT MIX MODES. MODE APPLIES TO EVERY [zombie_with_bomb] SPAWNED. TOO MANY ZOMBIES WITH THESE MODES MIGHT CRASH YOUR SERVER AND GAME.
eletric = false, eletricType = "ent_dst_elec_fire_sp", eletricDistance = 2.0, eletricDamage = 3, ragdollTime = 5, electricEffectCooldown = 30, -- ELECTRIC ZOMBIE MODE [NEW]
smoke = false, smokeDamage = 2, smokeDistance = 5.0, smokeDamageDelay = 5.0, smokeType = "exp_grd_bzgas_smoke", -- TOXIC ZOMBIE MODE [ "exp_grd_bzgas_smoke" | β "exp_grd_grenade_smoke" (THIS ONE MIGHT CRASH YOUR GAME) ] [NEW]
object = { -- SELECT AN OBJECT FOR "randomComponents" or "randomProps"
model = "prop_gascyl_01a",
bone = 24816,
offset = vector3(0.15, -0.220, 0),
rotation = vector3(0, 88, 6)
},
sound = "https://www.youtube.com/watch?v=D0pV0rjHGNE", -- YOUTUBE URL | "sounds/your_sound_name.mp3" [or .ogg] | β To use xsound, put sound files in "xsound\html\sounds"
soundDistance = 20.0, -- DISTANCE RANGE TO BE ABLE TO HEAR THIS SOUND
soundVolume = 10, -- VOLUME FOR SOUND
},
["zombie_with_smoke"] = {
models = {
"mp_f_meth_01", -- β DEFAULT
"a_m_m_farmer_01", -- π° ADDON
},
randomComponents = true, -- RANDOM CLOTHES COMPONENTS
randomProps = true, -- RANDOM PROPS ATTACHED TO ZOMBIE
headshot = true, -- ZOMBIE DIE BY HEADSHOT
walkAnim = true, -- WALK ANIMATION | βRequirement: sv_enforceGameBuild 3258
health = 200, -- ZOMBIE HEALTH
armor = 100, -- ZOMBIE ARMOR
speed = 1, -- SPEED FOR ZOMBIES BASED BY LEVEL: [ 1 = SLOW | 2 = AVERAGE | 3 = FAST ]
-- β IF YOU WANT TO ENABLE "eletric" OR "smoke" MODE, BE CAREFUL WITH "density" CONFIG AND DO NOT MIX MODES. MODE APPLIES TO EVERY [zombie_with_smoke] SPAWNED. TOO MANY ZOMBIES WITH THESE MODES MIGHT CRASH YOUR SERVER AND GAME.
eletric = false, eletricType = "ent_dst_elec_fire_sp", eletricDistance = 2.0, eletricDamage = 3, ragdollTime = 5, electricEffectCooldown = 30, -- ELECTRIC ZOMBIE MODE [NEW]
smoke = true, smokeDamage = 2, smokeDistance = 5.0, smokeDamageDelay = 5.0, smokeType = "exp_grd_bzgas_smoke", -- TOXIC ZOMBIE MODE [ "exp_grd_bzgas_smoke" | β "exp_grd_grenade_smoke" (THIS ONE MIGHT CRASH YOUR GAME) ] [NEW]
sound = "https://www.youtube.com/watch?v=-7vfp6_brzk", -- YOUTUBE URL | "sounds/your_sound_name.mp3" [or .ogg] | β To use xsound, put sound files in "xsound\html\sounds"
soundDistance = 20.0, -- DISTANCE RANGE TO BE ABLE TO HEAR THIS SOUND
soundVolume = 10, -- VOLUME FOR SOUND
},
},
}
-- LOCALES ---------------------------------------------------------------------------------------------------------------------------------------
Translations = {
["drawtextLoot"] = "~r~[E]~w~ Loot",
["loot_when_dead"] = "~r~You cannot loot because you are dead.",
["loot_when_incar"] = "~r~You cannot loot zombies while inside the vehicle.",
["get_reward"] = "Loot: %s",
["safezone"] = "Safezone",
["redzone"] = "Redzone",
}
-- DEBUG -----------------------------------------------------------------------------------------------------------------------------------------
Config.Debug = false -- Test mode (prints in console)
```
Last updated
Was this helpful?