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 (Change it to a property + changed description)
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>
<syntaxhighlight lang="javascript">mp.game.controls.useDefaultVehicleEntering = enabled;</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''enabled:''' boolean
*'''enabled:''' boolean
Line 11: Line 13:
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.game.controls.useDefaultVehicleEntering(true);
mp.game.controls.useDefaultVehicleEntering = true;
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>
Line 18: Line 20:
{{Controls_functions_c}}
{{Controls_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Revision as of 00:15, 29 June 2018