ChangeVehiclePaintjob

From SA-MP Wiki

Jump to: navigation, search


Change a vehicle's paintjob (for colors see ChangeVehicleColor).


Parameters:
(vehicleid, paintjobid)
vehicleidThe vehicle ID of which you want to change the paintjob.
paintjobidPaintjob to apply. Use 3 to remove paintjob.


ReturnsThis function always returns 1, even if the vehicle passed is not created.


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

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools
In other languages