AreVehicleLightsOn: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} This function is used to find out whether the lights of the vehicle are on. ==Syntax== <syntaxhighlight lang="lua"> bool areVehicleLightsOn ( ve...")
 
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
This function is used to find out whether the lights of the vehicle are on.
{{New feature/item|3.0160|1.5.7|19626|This function is used to find out whether the lights of the vehicle are on.}}


==Syntax==
==Syntax==
Line 15: Line 15:


==Example==
==Example==
<syntaxhighlight lang="lua">
{{Example}}
-- TODO
</syntaxhighlight>


==See Also==
==See Also==
{{Vehicle functions}}
{{Client vehicle functions}}

Revision as of 18:47, 4 September 2019

This function is used to find out whether the lights of the vehicle are on.

Syntax

bool areVehicleLightsOn ( vehicle theVehicle )

OOP Syntax Help! I don't understand this!

Method: vehicle:areLightsOn(...)
Variable: .lightsOn


Required Arguments

  • theVehicle: the vehicle you wish to retrieve the lights state of.

Returns

Returns true if the lights are on, false otherwise.

Example

Accessories-text-editor.png Script Example Missing Function AreVehicleLightsOn needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also