ChangeVehiclePaintjob
Description:
Function ChangeVehiclePaintjob change a vehicle's paintjob (for plain colors see ChangeVehicleColor).
Parameters:
(vehicleid, paintjobid)
int | vehicleid | The ID of the vehicle to change the paintjob of. |
int | paintjobid | The ID of the Paintjob to apply. Use 3 to remove a paintjob. |
Return Values:
This function always returns 1 (success), even if the vehicle passed is not created.
Examples:
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.
- ChangeVehicleColor: Set the color of a vehicle.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnVehiclePaintjob: Called when a vehicle's paintjob is changed.