[help] for-loop is " stopping the script"
#2

You should use a new thing instead of MAX_VEHICLES with the actual number of vehicles you used. It cant get a vehicle model of something that isn't there. MAX_VEHICLES is 2000. So if you spawn 1000 vehicles, vehicle 1001 is going to fail as soon as you try and get any info from it.

Put at the top like.

#undef MAX_VEHICLES
#define MAX_VEHICLES changeme

Replace changeme with the number of vehicles you added. So for example, 30 vehicles, or 150 vehicles, or whatnot.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)