(playerid, vehicleid, color1, color2)
playerid
The ID of the player that is driving the vehicle.
vehicleid
The ID of the vehicle that was resprayed.
color1
The color that the vehicle's primary color was changed to.
color2
The color that the vehicle's secondary color was changed to.
Known Bug(s): previewing a component inside a mod shop might call this callback.
- This callback is not called by ChangeVehicleColor.
- Misleadingly, this callback is not called for pay 'n' spray (only modshops).
Fix here: http://pastebin.com/G81da7N1
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
new string[48];
format(string, sizeof(string), "You resprayed vehicle %d to colors %d and %d!", vehicleid, color1, color2);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
The following functions might be useful, as they're related to this callback in one way or another.
The following callbacks might be useful as well, as they are related to this callback in one way or another.