SetVehicleHeadLightColor: Difference between revisions
Jump to navigation
Jump to search
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...) |
Cazomino05 (talk | contribs) mNo edit summary |
||
Line 6: | Line 6: | ||
<section name="Server and Client" class="both" show="true"> | <section name="Server and Client" class="both" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setVehicleHeadLightColor ( vehicle theVehicle, int | bool setVehicleHeadLightColor ( vehicle theVehicle, int red, int green, int blue) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theVehicle:''' The [[vehicle]] that you wish to set the headlight color of. | *'''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=== |
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 Clientbool 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 r,g or b.
Example
Click to collapse [-]
Example--TODO
See Also
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates