download the new clearer NPC script that will make sure npc/vehicles are delete at a location.
this script is forbidden to resell. this script is totally free
DOWNLOAD HERE clearareaNPC-V2.0
download the new clearer NPC script that will make sure npc/vehicles are delete at a location.
this script is forbidden to resell. this script is totally free
DOWNLOAD HERE clearareaNPC-V2.0
Like it ![]()
thank you if you have any problems let me know
![]()
Bad practice to call native on every tick.
Citizen.CreateThread(function()
while true do
Citizen.Wait(0) -- Wacht 1 seconde voordat opnieuw te controleren/---- Wait 1 second before checking again
local playerCoords = GetEntityCoords(PlayerPedId())
for _, zone in ipairs(zones) do
local distanceToZone = #(zone.center - playerCoords)
if distanceToZone <= zone.distance then
DeleteEntitiesInZone(zone)
end
end
end
end)
do you have an error ??
a few updates have been made to the script file
nice! i was literally just looking for a script like this! can i still spawn in cars in that area that i use? want it for my dealerships since cars spawn in the view area lol
thank you if you have any problems let me know
![]()
Would it not make more sense to use entityCreating on the server to block stuff like this? Just check of the population type is ambient or scenario GetEntityPopulationType - FiveM Natives @ Cfx.re Docs
there will be another update on the way
so its working but i cant spawn in my player owned cars, anyway to only have it setup for ped cars?
we are changing everything so that only npc vehicles are deleted and not player vehicles