Controls::useDefaultVehicleEntering: Difference between revisions
MrPancakers (talk | contribs) (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...") |
MrPancakers (talk | contribs) m (Change it to a property + changed description) |
||
| Line 1: | Line 1: | ||
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 | <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 | 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]] | ||
Revision as of 00:15, 29 June 2018
Enable/Disable RageMP's controls for entering a vehicle.
False = Holding F and pressing F both go to the driver's seat
True = Holding F will go to the passenger seat, pressing F will go to the driver's seat.
Syntax
mp.game.controls.useDefaultVehicleEntering = enabled;
Required Arguments
- enabled: boolean
Return value
- Undefined
Example
Client-Side
mp.game.controls.useDefaultVehicleEntering = true;
See also
- mp.game.controls.disableAllControlActions
- mp.game.controls.disableControlAction
- mp.game.controls.enableAllControlActions
- mp.game.controls.enableControlAction
- mp.game.controls.getControlActionName
- mp.game.controls.getControlValue
- mp.game.controls.getControlNormal
- mp.game.controls.getDisabledControlNormal
- mp.game.controls.isControlEnabled
- mp.game.controls.isControlJustReleased
- mp.game.controls.isControlJustPressed
- mp.game.controls.isControlPressed
- mp.game.controls.isControlReleased
- mp.game.controls.isDisabledControlJustReleased
- mp.game.controls.isDisabledControlJustPressed
- mp.game.controls.isDisabledControlPressed
- mp.game.controls.isInputDisabled
- mp.game.controls.isInputJustDisabled
- mp.game.controls.setControlNormal
- mp.game.controls.setInputExclusive
- mp.game.controls.setPadShake
- mp.game.controls.setPlayerpadShakesWhenControllerDisabled
- mp.game.controls.stopPadShake
- mp.game.controls.useDefaultVehicleEntering
- mp.game.controls.setDisableControlActionBatch
- mp.game.controls.applyDisableControlActionBatch