ChangeVehiclePaintjob
From SA-MP Wiki
ChangeVehiclePaintjob
This function allows you to apply a paintjob to a car. There are usually 3 paintjobs: 1,2 and 3, but IDs from 0 to 5 are known to be working.
(vehicleid, paintjobid)
| vehicleid | The vehicle ID of which you want to change the paintjob. |
| paintjobid | Paintjob to apply. 0 removes the current paintjob. |
Note: Paintjob ID 0 is the mothership on the camper!
This function does not return a specific value, it's best to simply ignore it.
new veh; veh = GetPlayerVehicleID(playerid); ChangeVehiclePaintjob(veh,2);
Related Functions
The following functions might be useful as well, as they're 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 they're related to this function in one way or another.
- OnVehiclePaintjob: Called when a vehicle's paintjob is changed.
