SetVehicleLightState: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 7: Line 7:
==Required Arguments==
==Required Arguments==
*'''Vehicle:''' A handle to the [[vehicle]] that you wish to change the light state of.
*'''Vehicle:''' A handle to the [[vehicle]] that you wish to change the light state of.
*'''State:''' A whole number determining the new state of the light. (0: fine, 1: broken)
*'''State:''' A whole number determining the new state of the light. (0: ok, 1: smashed)


==Example==
==Example==

Revision as of 22:53, 11 June 2006

Description

This function sets the state of the light on the vehicle.

Syntax

setVehicleLightState ( vehicle, state )

Required Arguments

  • Vehicle: A handle to the vehicle that you wish to change the light state of.
  • State: A whole number determining the new state of the light. (0: ok, 1: smashed)

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
state = setVehicleLightState ( newcar, 1 ) -- Breaks the light on a vehicle.

See Also