OnVehicleRespray

From SA-MP Wiki

Jump to: navigation, search

OnVehicleRespray


This callback is called when a player resprays his vehicle.


Note: Only works in Transfender


Parameters:
(playerid, vehicleid, color1, color2)
playeridID of the player whos vehicle is modded.
vehicleidID of the vehicle that is modded.
color1Primary color.
color2Secondary color.


This function does not return a specific value, it's best to simply ignore it.


public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    new string[128];
    format(string, sizeof(string), "You sprayed vehicle %i to colors %i and %i!", vehicleid,color1,color2);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
}

Related Functions

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


Related Callbacks

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