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...") |
m (Replaced HTML with template) |
||
| (One intermediate revision by one other user not shown) | |||
| 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== | ||
< | <pre>Boolean mp.game.controls.useDefaultVehicleEntering</pre> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''enabled:''' boolean | *'''enabled:''' boolean | ||
===Return value=== | ===Return value=== | ||
*''' | *'''Boolean''' | ||
==Example== | ==Example== | ||
{{ClientsideCode| | |||
< | <pre> | ||
mp.game.controls.useDefaultVehicleEntering = true; | |||
mp.game.controls.useDefaultVehicleEntering | </pre> | ||
</ | }} | ||
==See also== | ==See also== | ||
{{Controls_functions_c}} | {{Controls_functions_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
Latest revision as of 13:43, 26 October 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
Boolean mp.game.controls.useDefaultVehicleEntering
Required Arguments
- enabled: boolean
Return value
- Boolean
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