SetVehicleHeadLightColor

From Multi Theft Auto: Wiki
Revision as of 21:16, 16 June 2009 by Cazomino05 (talk | contribs) (New page: __NOTOC__ {{Server client function}} This function will set the headlight color of a vehicle. valid Red Green and Blue arguments range from 0-255 ==Syntax== <section name="Server and Cli...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 r, int g, int b)            

Required Arguments

  • theVehicle: The vehicle that you wish to set the headlight color of.
  • r: An integer indicating the amount of red for the vehicle's headlights
  • g: An integer indicating the amount of green for the vehicle's headlights
  • b: 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 r,g or b.

Example

Click to collapse [-]
Example
--TODO

See Also