Vehicle IDs
#1

I have a small problem. Supose I spawn a vehicle and it's ID is 'A' and I set it as a dealer vehicle (In a vehicle Dealer). Then when the player buys it the ID would be 'B', would that affect or cross over the IDs?

Example:

I spawn a turismo.

pawn Код:
A = CreateVehicle(blablabla);
Then I enter it and set it as a dealer vehicle and a player buys it, when they buy it, it should create like:

pawn Код:
B = CreateVehicle(blablabla);
Now would that cause the vehicle to have 2 IDs?
Reply
#2

no it would create a 2nd vehicle with a new id
Reply
#3

Hmm. Ok but when does a specific VehicleID get changed.
Reply
#4

You can't change vehicleids, you can only add them with CreateVehicle and delete with DestroyVehicle.
Reply
#5

I suggest making a checkpoint, when player enters and buys, you create that vehicle (just like autobahn)
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)