GetVehicleLightState: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 21:04, 11 June 2006

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

Shared