Controls::enableControlAction: Difference between revisions
(yay) |
MrPancakers (talk | contribs) No edit summary |
||
| 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_s_function_c}} | {{Controls_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 09:35, 14 January 2019
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