SetVehicleColor

From Mafia 2 Multiplayer Wiki
Jump to: navigation, search
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 vehicleidid of the target vehicle
int color1The primary vehicle color
int color2The secondary vehicle color

Example

function onVehicleSpawn( vehicleid )
{
	setVehicleColor( vehicleid, 10, 10 ); // set the vehicle color to red
	return 1;
}
Personal tools
Namespaces

Variants
Actions
Navigation
Scripting
Toolbox