Controls::disableAllControlActions: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.events.add('render', () => {
 
    if(condition) mp.game.controls.disableAllControlActions(2);
 
});
</syntaxhighlight>
</syntaxhighlight>
==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 20:32, 29 September 2017

Syntax

mp.game.controls.disableAllControlActions(inputGroup);

Required Arguments

  • inputGroup: int

Return value

  • Undefined

Example

mp.events.add('render', () => {

    if(condition) mp.game.controls.disableAllControlActions(2);

});

See also

Template:Controls s function c