Controls::enableControlAction: Difference between revisions
(yay) |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
control | {{ClientsideJsFunction}} | ||
Enables a control so it can be used. | |||
==Syntax== | ==Syntax== | ||
< | <pre>mp.game.controls.enableControlAction(inputGroup, control, enable);</pre> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''inputGroup:''' | *'''inputGroup:''' {{RageType|Int}} ([[InputGroup|Input Groups]]) | ||
*'''control:''' | *'''control:''' {{RageType|Int}} ([[Controls|Game Controls]]) | ||
*'''enable:''' Boolean | *'''enable:''' {{RageType|Boolean}} | ||
===Return value=== | ===Return value=== | ||
*'''Undefined''' | *'''Undefined''' | ||
==Example== | ==Example== | ||
< | <pre> | ||
todo | // todo | ||
</ | </pre> | ||
==See also== | ==See also== | ||
{{ | {{Controls_functions_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 10:55, 14 May 2024
Client-Side Function
Enables a control so it can be used.
Syntax
mp.game.controls.enableControlAction(inputGroup, control, enable);
Required Arguments
- inputGroup: Int (Input Groups)
- control: Int (Game Controls)
- enable: Boolean
Return value
- Undefined
Example
// todo
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