SetVehicleColor
From Mafia 2 Multiplayer Wiki
Server-only function
This function is used to change the color of a specific vehicle.
Syntax
bool setVehicleColor( int vehicleid, int color1, int color2 )
Parameters
(int vehicleid, int color1, int color2)
| int vehicleid | id of the target vehicle |
| int color1 | The primary vehicle color |
| int color2 | The secondary vehicle color |
Example
function onVehicleSpawn( vehicleid )
{
setVehicleColor( vehicleid, 10, 10 ); // set the vehicle color to red
return 1;
}