Difference between revisions of "SetVehicleHeadLightColor"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m
m
Line 16: Line 16:


===Returns===
===Returns===
Returns ''true'' if vehicle's headlight color was set, ''false'' if an invalid vehicle or invalid color ranges were specified for r,g or b.
Returns ''true'' if vehicle's headlight color was set, ''false'' if an invalid vehicle or invalid color ranges were specified for red,green or blue.
</section>
</section>



Revision as of 21:17, 16 June 2009

This function will set the headlight color of a vehicle. valid Red Green and Blue arguments range from 0-255

Syntax

Click to collapse [-]
Server and Client
bool setVehicleHeadLightColor ( vehicle theVehicle, int red, int green, int blue)            

Required Arguments

  • theVehicle: The vehicle that you wish to set the headlight color of.
  • red: An integer indicating the amount of red for the vehicle's headlights
  • green: An integer indicating the amount of green for the vehicle's headlights
  • blue: An integer indicating the amount of blue for the vehicle's headlights

Returns

Returns true if vehicle's headlight color was set, false if an invalid vehicle or invalid color ranges were specified for red,green or blue.

Example

Click to collapse [-]
Example
--TODO

See Also