Vehicle::getIsEngineRunning: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Returns true when in a vehicle, false whilst entering/exiting.
Returns true if the engine is on, returns false if the engine is off.
Returns null while entering/exiting vehicle.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.getIsEngineRunning();</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.getIsEngineRunning();</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
===Return value===
===Return value===
*'''Boolean'''
*'''boolean: false or true'''
 
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
Line 10: Line 12:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 11:38, 9 May 2024

Returns true if the engine is on, returns false if the engine is off. Returns null while entering/exiting vehicle.

Syntax

vehicle.getIsEngineRunning();

Required Arguments

Return value

  • boolean: false or true

Example

// todo

See also