SA-MP Forums Archive
Vehicle IDs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle IDs (/showthread.php?tid=256101)



Vehicle IDs - Tee - 19.05.2011

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?


Re: Vehicle IDs - (SF)Noobanatior - 19.05.2011

no it would create a 2nd vehicle with a new id


Re: Vehicle IDs - Tee - 19.05.2011

Hmm. Ok but when does a specific VehicleID get changed.


Re: Vehicle IDs - MadeMan - 19.05.2011

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


Re: Vehicle IDs - xalith - 19.05.2011

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