Posts: 410
Threads: 88
Joined: Oct 2008
Reputation:
0
Hey guys, got a simple question about CreateVehicle, couldn't find the answer anywhere so I am asking here.
What would CreateVehicle return if the vehicle limit is reached?
new vehicleid = CreateVehicle(...);
what would vehicleid be?
Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
When vehicles are created their ID's are assigned in order from 0. So if that is the 5th vehicle made on your server, it would be ID 4.
Posts: 410
Threads: 88
Joined: Oct 2008
Reputation:
0
You didn't understand my question, clearly you haven't read it all.
I asked what would it return IF the LIMIT is reached
Posts: 966
Threads: 5
Joined: Jul 2011
Reputation:
0
I have some experience with reaching the vehicle limit. If this happens, then the vehicle just doesn't spawn and I think it might be INVALID_VEHICLE_ID that's returned! This hasn't been mentioned in this topic yet so I thought I'd pop in and give it a mention!