IsVehicleWindowOpen: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0160|1.6|7405|This function sets the vehicle window state.}} == Syntax == <syntaxhighlight lang="lua"> bool isVehicleWindowOpen ( vehicle ...")
 
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{Needs Example}}
{{New feature/item|3.0160|1.6|7405|This function sets the vehicle window state.}}
{{New feature/item|3.0160|1.6|7405|This function sets the vehicle window state.}}



Revision as of 01:42, 7 September 2015

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

Before submitting check out Editing Guidelines Script Examples.

This function sets the vehicle window state.

Syntax

bool isVehicleWindowOpen ( vehicle theVehicle, int window )

Required arguments

  • theVehicle: The vehicle that you wish to change the window state.
  • window: An integer representing window.
    • 0: motorbike shield
    • 1: rear window
    • 2: right front window
    • 3: right back window
    • 4: left front (driver) window
    • 5: left back window
    • 6: windshield

= Returns

This function returns a boolean which represents window open state

Example

--TODO

See also