GetVehicleLightState

From Multi Theft Auto: Wiki
Revision as of 09:14, 12 June 2006 by EAi (talk | contribs)
Jump to navigation Jump to search

This function returns the current state of the specifed light on the vehicle.

Syntax

getVehicleLightState ( vehicle, light )

Required Arguments

  • Vehicle: A handle to the vehicle that you wish to know the light state of.
  • Light: A whole number between 0 and 3

Returns

Returns 0 (working) or 1 (broken)

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
state = getVehicleLightState ( newcar, 0 )
outputChatBox ( "The front-left light state on this car: " .. state )

See Also

Shared