TGIANN Zombie Event For RP Servers

fivem

:arrow_forward:Showcase Video :arrow_forward:

A few videos from my own servers about the event

Features

  • Easy config
  • Full optimized
  • Easy to use
  • ESX and QB compatible
  • Zombie NPCs
  • Siren sound and bomb explosion effect
  • Protected using Escrow system

Zombie Player Features

  • High punch damage(Editable)
  • High movment speed(Editable)
  • Super jumps
  • when they die, they are respawn with a parachute from a different point
  • zombies cannot drive or use weapons

Normal Player Features

  • Can run

Commands

  • ZSTART: Starts the zombie event, Those who die after the event starts will turn into zombies
  • ZAREA: Starts the last line of defense, Broadcasts the message that players need to go to the last area, Zombies that die inside the field cannot respawn
  • ZFINISH: ends the event and revives dead players

UPDATE(07.05.2022)

unknown

  • New configs added
  • Zombie attack animations are now better (zombi)
  • A few minor bugs fixed

Requirements

  • ESX or QBCore

Config File

TGIANN | Zombie Event For RP Servers (tebex.io) 15€
TGIANN Subscription Pack (All TGIANN Scripts 30€/Monthly)
TGIANN | Scripts (tebex.io)

Code is accessible No
Subscription-based No
Lines (approximately) 1000+
Requirements Check Requirements
Support Yes
5 Likes

hey thats hella cool. Love the missile explosion effects and the countdown to it, the zombies are cool, can you change whether they 1 hit you or not?

Who has access to the commands? Is that configurable?

commands can only be used from the server console
you can change it if you want

you can change the damage of player zombies
NPC’s damage is random

1 Like

I bought this script, it is cool, but can you please make it bit configurable the blur, colors etc… I mean screen effect. After 5 minutes it becomes very irritating to eyes. Or if you decrease the effect the bit that would be good as well.

It would be better if you set the weather setting to thunder and night

It’s great to see things like this coming out of my country! :partying_face:

NICE WORK !

1 Like

Or you could add config for those effect values.

Also is there anything I would get access to?Let’s say perhaps a function/event/export to determine which people remain as survivors after event ending, checking that those people actually went to the last defence zone, and a way to check who as a zombie turned other player. I would like to write some reward pools for those in question and thus would need a bit more access than just config

2 Likes

Bought it, brought it in dev and works amazing! Great work!

1 Like

Personally I haven’t bought it but I am messing with zombies for long time.

Those are just ideas to improve since it is a paid script,

Zombies punching? Doesn’t seem realistic, bitting animation for zombie and hurt animation for player would be much better.

If zombies are peds, add an eating animation on death, zombies going to the player while dead and eating his body (not hard to do, I’ve done it very easily).

I also saw that some peds are stupid and doesn’t attack in the showcase, you should take a look to their target and target the player not just walking around and not targeting the victim.

About about client of yours, you can’t force him to change weather, you should support and allow the client to choose what he wants, even if you don’t have it as an option, better adding it because he will not be the only one.

2 Likes

Can you please give instructions on how to add it to server after purchase. There was no “read me” note. Thanks for your time.

put the script in the main directory of the resource file and start the script
other required explanations are in config file

UPDATE

unknown

  • New configs added
  • Zombie attack animations are now better (Streamable)
  • A few minor bugs fixed

I typed in zstart but nothing happened, so just to be sure, I opened the zip file, copied and pasted the file into the resources folder, then went to cfg. Pasted start and the name of the folder. Did I miss anything?

Are you typing the command in the server console?

yes, i did

I added some client locations to trigger the rest of the events.
maybe you can include on update in future.
(im not a professional scripter so maybe this can be done a better way)

this makes it so you can to radio the Army at the vinewood tower. Then get to the Vinewood bowl to get to saftey from the blast. This config i also posted removes the players turning into zombies and also slows the regular zombies down a bit.


Text3D = function(x, y, z, text)
	SetTextScale(0.35, 0.35)
    SetTextFont(4)
    SetTextProportional(1)
    SetTextColour(255, 255, 255, 215)
    SetTextEntry("STRING")
    SetTextCentre(true)
    AddTextComponentString(text)
    SetDrawOrigin(x,y,z, 0)
    DrawText(0.0, 0.0)
    local factor = (string.len(text)) / 370
    DrawRect(0.0, 0.0+0.0125, 0.017+ factor, 0.03, 0, 0, 0, 75)
    ClearDrawOrigin()
end

Citizen.CreateThread(function()
    while true do
        local inRange = false

        local PlayerPed = PlayerPedId()
        local PlayerPos = GetEntityCoords(PlayerPed)

        local distance1 = #(PlayerPos - vector3(750.34, 1273.94, 359.3)) --radio tower
        
        if distance1 < 8 then
            inRange = true

            if distance1 < 8 then
                Text3D(750.34, 1273.94, 359.3, "[G] Send radio signal to ARMY")  --vector3(750.34, 1273.94, 360.3)
                DrawMarker(27, 750.34, 1273.94, 359.3, 0, 0, 0, 0, 0, 0, 1.0, 1.0, 1.0, 255, 0, 0, 100, false, true, 0, true)
                if IsControlJustPressed(0, 47) then
					TriggerClientEvent("tgiann-halloween:alan", -1)
                end
            end
            
            
        end

        if not inRange then
            Citizen.Wait(2000)
        end
        Citizen.Wait(3)
    end
end)


Citizen.CreateThread(function()
    while true do
        local inRange = false

        local PlayerPed = PlayerPedId()
        local PlayerPos = GetEntityCoords(PlayerPed)

        local distance1 = #(PlayerPos - vector3(690.26, 588.37, 130.07)) --radio tower
        
        if distance1 < 8 then
            inRange = true

            if distance1 < 8 then
                Text3D(690.26, 588.37, 130.07, "[G] Activate to stop zombies")  --vector3(750.34, 1273.94, 360.3)
                DrawMarker(27, 690.26, 588.37, 130.07, 0, 0, 0, 0, 0, 0, 1.0, 1.0, 1.0, 255, 0, 0, 100, false, true, 0, true)
                if IsControlJustPressed(0, 47) then
					TriggerClientEvent("tgiann-halloween:stop", -1)
                end
            end
            
            
        end

        if not inRange then
            Citizen.Wait(2000)
        end
        Citizen.Wait(3)
    end
end)```

and here is the config i used. (for the folks who RP and dont want to turn into a crazy OP zombie)

Config.framework = "qb" -- "esx" -- "qb"
Config.test = true
Config.enableScreenEffect = false -- sets the screen effect
Config.maxZombiePed = 5 -- Number of pads to spawn per player
Config.isNetworkZombiePed = true -- sync zombies for all players
Config.zombiePedDamage = 5 --max 100
Config.zombieSpawnR = 5 -- min 5
if Config.framework == "esx" then
    Config.reviveEventName = "esx_ambulancejob:revive"
    Config.deadEventName = "esx:onPlayerDeath"
else
    Config.reviveEventName = "hospital:client:Revive"
    Config.deadEventName = "hospital:client:RespawnAtHospital" 
end
Config.disableVehicles = true -- Disables driving while the event is active (vehicles break automatically)
Config.zombiePlayerDamage = 5.0
Config.zombiePlayerSpeed = 0.7
Config.lastAreaCoord = vector3(687.59, 562.48, 129.05)
Config.lastAreaRadius = 300.0 

function chatMessage(args1, args2) 
    if Config.framework == "esx" then
        TriggerEvent('chat:addMessage', {
            color = { 255, 0, 0},
            multiline = true,
            args = {args1, args2}
        })
    else
        TriggerEvent("chatMessage", args1, "warning", args2)
    end
end

function showNotification(msg, type, time)
	if Config.framework == "esx" then
		myFramework.ShowNotification(msg)
	elseif Config.framework == "qb" then
		if not type then type = "primary" end
		myFramework.Functions.Notify(msg, type, time) 
	end
end

--only useable from the server console
Config.commands = {
    ["start"] = "zstart", -- start event
    ["area"] = "zarea", -- active zombie area
    ["finish"] = "zfinish", -- finish event
}

Config.text = {
    ["emergency"] = "EMERGENCY",
    ["epilepsy"] = "ZOMBIES ARE ON THE LOOSE!", 
    ["epilepsyAlert"] = "Survivors Comms. -Use Radio Chan. #11 ",

    ["deadMsg"] = " You died & got sent to the morgue!",

    ["joiningServerAfter"] = "Since you entered during the zombie event, you will automatically die soon and start at the morgue!",

    ["startMsgAlert1"] = "This is an emergency alert, not a simulated military operation!",
    ["startMsgAlert2"] = "A chemical missile has launched from the island of Cayo Perico!",
    ["startMsgAlert3"] = "Stay inside. Those who can fight should help by activating the vinewood radio tower",

    ["lastMsgAlert1"] = "The Army is going to bomb the area! The vinewood bowl should protect you from the blast wave",
    ["lastMsgAlert2"] = "We need the help of all survivors!",
    ["lastMsgAlert3"] = "If you are armed and able to fight, come to the red area that has been sent to your GPS!",

    ["lastDeadMsg"] = "You died but your soul will live on forever.",

    ["finishEventMsg1"] = "Treatment completed! In a minute, the gas created by the treatment will affect the whole city.",
    ["finishEventMsg2"] = "You Feel Crazy Tired",
    ["finishEventMsg3"] = "Everything is blury and dark!",
    ["finishEventMsg4"] = "YOU WILL FORGET THE LAST FEW HOURS WHEN YOU WAKE UP!",
}```

My request would be to hide the markers i added until the event is started.

and to also add in a config option to whitelist the peds used as zombies.
i would like to steam 2 or 3 replacement peds so they can look more like zombies.