Controls::disableControlAction: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
<syntaxhighlight lang="javascript">mp.game.controls.disableControlAction(inputGroup, control, disable);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.controls.disableControlAction(inputGroup, control, disable);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
| Line 8: | Line 7: | ||
===Return value=== | ===Return value=== | ||
*'''Undefined''' | *'''Undefined''' | ||
*[[Controls|Game Controls]] | |||
==Example== | ==Example== | ||
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;"> | <div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;"> | ||
| Line 21: | Line 23: | ||
==See also== | ==See also== | ||
{{Controls_s_function_c} | {{Controls_s_function_c} | ||
*[[Controls|Game Controls]] | |||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:58, 21 September 2017
mp.game.controls.disableControlAction(inputGroup, control, disable);
Required Arguments
- inputGroup: int
- control: int
- disable: Boolean
Return value
- Undefined
Example
Client-Side
mp.events.add('render', () => {
mp.game.controls.disableControlAction(2, 19, true);
});
See also
{{Controls_s_function_c}