Hey,
I've got a problem when I want to delete some objects.
setOcclusionsEnabled(false)
for i=615,18630 do
removeWorldModel(i,1442,1963,1905,0)
removeWorldModel(i,280,2866,710,0)
removeWorldModel(i,1528,27,1888,0)
removeWorldModel(i,2081,-2512,1547,0)
removeWorldModel(i,99,1091,716,0)
removeWorldModel(i,1574,-1907,-1575,0)
removeWorldModel(i,790,-597,-2405,0)
removeWorldModel(i,272,-1294,-193,0)
removeWorldModel(i,471.4,-655,-777,0)
removeWorldModel(i,361,-291,-1415,0)
removeWorldModel(i,191,-263,-983,0)
removeWorldModel(i,108,-80,-1035,0)
removeWorldModel(i,73,4,-983,0)
removeWorldModel(i,84.75,3,-1174,0)
end
I remove all objects of an area, but there are some objects (like palm trees, some barriers,...) which stay. I verified if their ID is between 615 and 18630 and they are.
I don't think that it's because they are still loaded as the script is already running before I start mta and I join the server.
I can't find what's wrong, I also tried to delete every object from whole map and that works. I'm sure that these objects are in the removing area though...