note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
Change a vehicle's paintjob (for plain colors see ChangeVehicleColor).
|vehicleid||The ID of the vehicle to change the paintjob of.|
|paintjobid||The ID of the Paintjob to apply. Use 3 to remove a paintjob.|
This function always returns 1 (success), even if the vehicle passed is not created.
If vehicle's color is black , paintjob may not be visible. Better to make vehicle white before applying painjob by using ChangeVehicleColor(vehicleid,1,1);
new rand = random(3); // Will either be 0 1 or 2 (all valid) ChangeVehicleColor(GetPlayerVehicleID(playerid),1,1); // making sure it is white for better result ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), rand); // changes the paintjob of the player's current vehicle to a random one