HELLO I would like to know if the code applied is good and will not have a problem is a simple script which serves to erase the area of ​​parking spawn of the entire city so that there is only vehicular traffic of npc.

Each time a car appears naturally in a parke, it will be automatically deleted after 3-5 seconds.

My query here is that if the code is well applied since

It repeats almost 500-600 times “lines” with different areas and I would like to know if to put so many maybe it will give problems.

Thanks so much for reading.

You could optimize this script by making a config at the very top with all of the locations and than in the code make it execute the config… The current setup may be super laggy. I’m not very good at coding but it should work.

Thanks, any clue how to do it?

I am literally new to Lua. and ps I find it complicated to do it but little by little I am understanding how it works.

Check out this resource:

He is using the native: SetParkedVehicleDensityMultiplierThisFrame

That might be a better means of going about it.

I have some experience but with this resource i’m clueless.