Controls::useDefaultVehicleEntering: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Lets you enable the default vehicle entering key used in GTA:Online/Singleplayer ==Syntax== <syntaxhighlight lang="javascript">mp.game.controls.useDefaultVehicleEntering(enab...")
 
m (Replaced HTML with template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Lets you enable the default vehicle entering key used in GTA:Online/Singleplayer
Enable/Disable RageMP's controls for entering a vehicle.<br>
'''False''' = Holding F and pressing F both go to the driver's seat<br>
'''True''' = Holding F will go to the passenger seat, pressing F will go to the driver's seat.


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.controls.useDefaultVehicleEntering(enabled);</syntaxhighlight>
<pre>Boolean mp.game.controls.useDefaultVehicleEntering</pre>
 
=== Required Arguments ===
=== Required Arguments ===
*'''enabled:''' boolean
*'''enabled:''' boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Boolean'''
 
==Example==
==Example==
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
{{ClientsideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<pre>
<syntaxhighlight lang="javascript">
mp.game.controls.useDefaultVehicleEntering = true;
mp.game.controls.useDefaultVehicleEntering(true);
</pre>
</syntaxhighlight>
}}
</div>


==See also==
==See also==
{{Controls_functions_c}}
{{Controls_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Latest revision as of 13:43, 26 October 2018