[Question] CreateVehicle
#1

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?
Reply
#2

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.
Reply
#3

You didn't understand my question, clearly you haven't read it all.
I asked what would it return IF the LIMIT is reached
Reply
#4

https://sampwiki.blast.hk/wiki/Limits - therefore it should return 2000.
Reply
#5

INVALID_VEHICLE_ID
Reply
#6

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
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.
Vehicle IDs start at 1.
Reply
#7

IDS start at 0 o.O
Reply
#8

No, MP2 is right, they start at 1.

https://sampwiki.blast.hk/wiki/Starting_IDs
Reply
#9

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)