Some vehicles have only a primary color and some can not have the color changed at all. A few (cement, squallo) have 4 colors, of which 2 can not be changed in SA:MP
(vehicleid, color1, color2)
vehicleid
The ID of the vehicle to change the colors of.
color1
The primary color ID. -1 for random.
color2
The secondary color ID. -1 for random.
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
// Change the primary color to black and the secondary color to white
ChangeVehicleColor(vehicleid, 0, 1);
return 1;
}
The following functions may be useful, as they are related to this function in one way or another.
The following callbacks might be useful, as they're related to this function in one way or another.