same to me men
Keep crashing tho, maybe because of to much spawning + if you have friend joining, it will be crashing all the time
I kan hear the police radio from normal gta, when i put the script on the server, it works=) but kan you fix so i dont hear the police radio from normal gta. it coms when i shoot the zombies, i sound like you get wanted when you kill them? BUT very cool script=)
some fix about this?? i have the same problem ![]()
is there any way of adding new SafeZones?
Sick zombie system
Where are the safezones? Is there a map to locate these?
Game crashing after some time when player joined how to fix that?
would love to see a update to this and fix the crashing issues @weponz
So I think if you comment out the âRemoveAllPedWeapons(Zombie, true)â line, it can clear up a lot of crashes. Even if the ped has weapons on them they donât use them due to all the other changes to the peds behaviour. I was getting rage:: netGameEvent errors along with others on the server and so far this has stopped that from occuring.
the coords you can make yourself in the zombies.lua
yes in the zombies.lua there are coordinates
How can we make it so they actually pull you out of the vehicle. Iâve made it so they now react to vehicles again, as I prefer that⌠but they still just sit there at your door
Probably by using some form of this
SetPedCanBeDraggedOut(
ped --[[ Ped ]],
toggle --[[ boolean ]]
)
I had this set for them as well but unfortunately it made no difference ![]()
I see whatâs happening, the zombies arenât actually attacking the player, they are just tasked with go to player and when in certain range it causes the health of the player to decrease. For the zombies to remove a player from a vehicle they would need to be tasked with attacking the player (which Iâm still reading about here https://docs.fivem.net/natives/?_0x9CFBE10D).
local PedCoords = GetEntityCoords(Zombie)
local Distance = #(PedCoords - PlayerCoords)
local DistanceTarget
local PlayerVehicle = GetVehiclePedIsIn(PlayerPedId(), false)
local vCoords = GetEntityCoords(PlayerVehicle, false)
local ZvDist = #(PedCoords - vCoords)
if IsPlayerShooting() then
DistanceTarget = 120.0
elseif IsPlayerRunning() then
DistanceTarget = 50.0
else
DistanceTarget = 20.0
end
if Distance <= DistanceTarget and not IsPedInAnyVehicle(PlayerPedId(), false) then
TaskGoToEntity(Zombie, PlayerPedId(), -1, 0.0, 2.0, 1073741824, 0)
elseif ZvDist <= DistanceTarget and IsPedInAnyVehicle(PlayerPedId(), false) then
SetPedCanBeDraggedOut(PlayerPedId(), true)
TaskGoToEntity(Zombie, PlayerVehicle, -1, 1.0, 2.0, 1073741824, 0)
if ZvDist < 3.0 then
TaskEnterVehicle(Zombie, PlayerVehicle, -1, -1, 2.0, 8, 0)
end
end
Change this area of the script in zombies.lua, restart the server and zombies will pull you from vehicle. It does not work perfectly, but it does work sometimes.
are you using an old version of the script? mine doesnt have vDist
I added those locals to account for the vehicle and itâs ZvDist not vDist, vDist is a dirty word.
hehe, I will give this a try in the morning and let you know how it goes! ty