So I know there is a native call to remove NPCS from an area, but it doesn’t seem to be working, most likely because my implementation is incorrect. Just trying to figure out what I need to do to fix it.
I’ve added in my main.lua for the client side of things
Citizen.CreateThread(function() while (true) do ClearAreaOfPeds(470.00, -990.00, 25.00, 10000, 1) Citizen.Wait(0) end end)
Any suggestions / input? I’ve managed to get a functional server, but writing this lul on my part. I should add, that I’m not trying to remove NPC’s from the map, just from a certain location on the map.