SA-MP Forums Archive
Change Vehicle Paintjob - 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)
+--- Thread: Change Vehicle Paintjob (/showthread.php?tid=494755)



Change Vehicle Paintjob - Miladajir - 14.02.2014

Hello
I have a problem.
How can I use only vehicle.
Not random.
---
I am sorry.
I am a newcomer.
---
Code : (ChangeVehiclePaintjob)
Код:
new rand = random(3); // Will either be 0 1 or 2 (all valid)
ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), rand); // changes the paintjob of the player's current vehicle to a random one
---
Thanks


Re: Change Vehicle Paintjob - Aerotactics - 14.02.2014

Quote:

ChangeVehiclePaintjob(GetPlayerVehicleID(playerid) , 0);

That 0 could be 0, 1, or 2 (depending on if the vehicle has a paintjob). For more information:
https://sampwiki.blast.hk/wiki/Paintjob