Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.07

Description

Description:Checks whether the light of a vehicle is turned on (if used with other objects than vehicles, the command always returns the same value, regardless of the object lighting status).

Syntax

Syntax:isLightOn vehicle
Parameters:
  • vehicle: Object - Vehicle to check.
Return Value:Boolean - If true, then the vehicle light is switched on (even though the headlamps may be off, in case they are destroyed).

Examples

Examples:
_isOn = isLightOn (vehicle player)

Additional Information

See also: lightIsOn
Multiplayer: 
Problems: 

Notes