OnVehiclePaintjob
From SA-MP Wiki
OnVehiclePaintjob
This callback is called when a player changes the paintjob of his vehicle. Currently only works for ModShops (e.g. Wheel Arch Angels).
(playerid, vehicleid, paintjobid)
| playerid | ID of the player whos vehicle is modded. |
| vehicleid | ID of the vehicle that is modded. |
| paintjobid | ID of the new paintjob. |
This function does not return a specific value, it's best to simply ignore it.
public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { new string[128]; format(string, sizeof(string), "You have changed your vehicle's paintjob to %d!", paintjobid); SendClientMessage(playerid, 0x33AA33AA, string); return 1; }
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- ChangeVehiclePaintjob: Set the paintjob of a vehicle
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnVehicleRespray: Called when a vehicle is resprayed in ModShops(not in Pay N' Spray)
- OnVehicleMod: Called when a vehicle is modded
