GetVehicleLightState

From Multi Theft Auto: Wiki
Revision as of 21:04, 11 June 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

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

Syntax

getVehicleLightState ( vehicle )

Required Arguments

  • Vehicle: A handle to the vehicle that you wish to know the light state of.

Returns

Returns 0 (working) or 1 (broken)

Example

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

See Also