[Release][Discontinued][ESX 1v-final] Zombie System

how do you loot the zombies?

Kill a zombie and press E

where do I find these?

How to connect this to database?

I would celebrate it if it is not for each player own zombies but that all players can kill all zombies.
And not only their own

Yes, I totally agree with you. I have been looking for some way to do this, but I haven’t succeeded yet.

Yes there is a possibility that you can spawn the zombies as normal NPC’s xD and the FLAG simply set to HATE (5) then the zombies attack automatically but the spawn rate is just too low

At present, according to my modification of this resource, what I have achieved is that after killing a zombie, I will get a random XP and then I can find items in its corpse. (Unfortunately, only self-generated zombies can do this. If I kill the zombie spawned by other players, I cannot get XP or seek things from them, and they will not attack me. Otherwise I would really be very excited If all players can connect the zombies)

I know that because all zombies are spawned on the client side of each player, so I can’t achieve the purpose I want. I tried to transfer the table storing the zombies to the server side, and then transfer them to all clients, but it was unsuccessful. Maybe I did something wrong.

So I am now looking forward to whether there will be experts in the forum that can solve this problem. :star_struck:

Really nice :slight_smile: good work :slight_smile: congratulations.
However, what happens if you turn that around.
Means if you let the zombies spawn on the server side and then transferred to the client:
for example:
clientside → serverside
to
serverside → clientside

I tried the method you mentioned, but unfortunately still not successful. Maybe I still did something wrong… The only thing I can do now is that only the zombies generated by my own client can achieve the effect I want.

https://streamable.com/9qzd5q

are you successful now?
let me know

not succeeded yet :slightly_frowning_face:

awww :’(

1 Like

Hello good, someone knows how I could automatically put money or objects and not have to press a key
Thanks

1 Like

I always get a problem in the main.lua at line 35, the error is in the canCarryItem chunk

having a problem to my server… the zombies is running when they hearing gunshots and aiming gun!! ahaha pls help any idea?

TaskSetBlockingOfNonTemporaryEvents(ped,true)

Where “ped” set zombies peds.

1 Like

It works for me thank you :pray: btw do you have a way to synchronize zombies to each players… i using set onesync_enabled 1 to my cfg but still not working…

hello, i have a problem with this script, when i play with other players on the server with this script, sometimes you don’t see each other, you can fix it

Same problem sir , hope we get some info how to fix it :pray: