HTV Studio
  • HTV Studio
  • HTV ADVANCED ZOMBIE EXPERIENCE
    • 💡Installation
    • ✨Config
    • ❔FAQ
  • Advanced Safezone
    • 💡Installation
    • ✨Config
Powered by GitBook
On this page
  • How much Zombies should spawn
  • Safezones
  • Playerdetection
  • Zombiesettings at night
  • Zombiesettings in general
  • Redzones
  • Bosszombies
  • Looting
  • Custom events
  • Translation
  • Using NPC
  1. HTV ADVANCED ZOMBIE EXPERIENCE

Config

Setting up the Config-file

How much Zombies should spawn

NPCatDay = 1.0,
NPCatNight = 1.0,

You can configure the number of zombies spawning during the day and night. Day: 8 AM to 6 PM Night: 6 PM to 8 AM Minimum: 0.0 (No Zombies) Maximum: 1.0 (Standard GTA quantity)

Safezones

SafeZones = {
        {x = 1722.68, y = 2581.87, z = 45.56, radius = 250},
        {x = ..., y = ..., z = ..., radius = ...},
    }

Establish as many safe zones as needed. Each safezone ensures the disappearance of all zombies within its boundaries.

Playerdetection

ZombieHearDistanceShooting = 120.0,
ZombieHearDistanceRunning = 30.0,
ZombieHearDistanceNormal = 10.0,

You can configure the distance in meters at which zombies detect you, distinguishing between walking, running, and shooting.

Zombiesettings at night

ZombiesAtNightFaster = true,
ZombieSpeed = 2.0,

Configure whether zombies are faster at night than during the day. If they are faster, you can adjust the speed accordingly.

Zombiesettings in general

Damage = 1,
ArmorFirst = true,
ZombieHealth = 500,

You have the option to determine the damage inflicted by a zombie scratch, utilizing the standard player health indicator. Specify whether a protective vest provides defense against zombies and set the default strength/health of the zombies.

Redzones

RedZone = vector3(3569.84, 3758.86, 30.06),
RedZoneRadius = 500,
ZombieHealthInRedZone = 2000,

Enhance the strength of zombies in red zones.

Bosszombies

BossWahrscheinlichkeit = 95,
ZombieHealthBoss = 5000,
KillBossWithHeadShot = false,

Create boss zombies that are more powerful and specify whether they can be instantly killed by a headshot. Also, set the probability for a boss to appear. (95 -> 5% probabillity)

Looting

LootZombies = true,
LootItems = {
    'water',
    'meat'
},

You can loot killed zombies, if you're using ox_target. Set up the items you can find.

Custom events

KilledByZombiesClientEvent = 'none',
KilledByZombiesServerEvent = 'none', 
GetDamageByZombieServer = 'none',  
GetDamageByZombieClient = 'none',  
XPServerEvent = 'none',
XPClientEvent = 'none',  

You can customize the script to suit your preferences by configuring various events.

  • KilledByZombies: Events triggered when you are killed by zombies.

  • GetDamageByZombie: Events triggered when you receive damage from zombies (e.g., for an infection system).

  • XP: Events triggered after each zombie kill, providing experience points.

Translation

Translation = {
    ZombieAlive = 'Du kannst diesen Zombie nicht looten. Er lebt noch.',
    TooMuchDistance = 'Dafür bist du zu weit entfernt.',
    loot = 'Loote Zombie..',
}

Using NPC

To ensure that NPCs in safe zones do not disappear and generally do not become zombies, the following must be done.

Go to your Script, that spawns NPC and add the following line at the top of a client.lua:

_, trash = AddRelationshipGroup(„SURVIVOR“)

Add for each NPC this line:

SetPedRelationshipGroupHash(YourNPC, trash)
PreviousInstallationNextFAQ

Last updated 1 year ago

✨