Your Cart

The Store You, Never Seen Before !

[Tutorial] How to Remove all zombies in a specific area

Code to Remove Zombies or peds from a specific area

This line of code allows you to create a safe zone. It deletes all the zombies in a specific area.
Run this code on client side of the server to clear the peds at specified areas.

Citizen.CreateThread(function()
while (true) do
againclear()
Citizen.Wait(0)
end
end)

function againclear()
ClearAreaOfPeds(456.31, -771.0, 27.36, 90.0, 1)
ClearAreaOfPeds(465.25, -852.29, 26.86, 30.0, 1)
Citizen.Wait(3000)
againclear2()
end

function againclear2()
againclear()
end

or

local safezones = {
[1] = {
pos = vector3(456.31, -771.0, 27.36),
area = 90.0
},
[2] = {
pos = vector3(465.25, -852.29, 26.86),
area = 30.0
},
}

Citizen.CreateThread(function()
while true do
Citizen.Wait(1)

for k, v in pairs(safezones) do

ClearAreaOfPeds(v.pos, v.area, 1)
end

Citizen.Wait(3000)
end
end)

Hope you get if you still need help contact us for more info and details or tutorials.

Leave a Reply
Delivery

We Provide instant release of our product opon purchase

Easy return policy

If you think the product have some errors you can easily return it.

Customer Support

All paid products comes with free customer support feel free to contact us

100% Secure Checkout

MasterCard / Visa / Payoneer / Skrill / Bank Transfer