This is our first release of a VERY SIMPLE NPC Crowd Control resource.
This is being released for people with very little scripting knowledge (like myself) that want a resource that despawns NPC’s in zones based on coordinates and radius.
In our case: We use an MLO that effects the driving paths of NPC’s. So rather than just having them continue to drive into the MLO, you can despawn them.
NOTE: We have partnered with Blockz with his latest Border Map. Our config is pre-configured to fix the driving paths and issues where peds interact weirdly with the map. It is VERY easy to change the locations.
How difficult is it to configure coordinates: VERY EASY
Here is a Free version will do the samething but without you losing $5
just copy and paste the code to any client script you want
Code :
local ZonesConfig = {}
-- Here you can add the zone where you want peds to be deleted
ZonesConfig.NoPedsZones = {
--just copy and paste the line and change coords, radius
{coords = vector3(0.0, 0.0, 0.0), radius = 100.0 },
}
-- Here you can add the zone where you want vehicles to be deleted
ZonesConfig.NoVehiclesZones = {
--just copy and paste the line and change coords, radius
{coords = vector3(0.0, 0.0, 0.0), radius = 100.0 },
}
CreateThread(function()
while true do
for k, v in pairs(ZonesConfig.NoPedsZones) do
ClearAreaOfPeds(v.coords, v.radius, 1)
end
for k, v in pairs(ZonesConfig.NoVehiclesZones) do
ClearAreaOfVehicles(v.coords, v.radius, false, false, false, false, false)
end
Wait(500)
end
end)