Controls::disableAllControlActions

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Client-Side
Function

Js.png JavaScript



Disables all controls within a given Input Group.

Syntax

mp.game.controls.disableAllControlActions(inputGroup);

Required Arguments

Return value

  • Undefined

Example

This disables all controls under the 'INPUTGROUP_WHEEL' input group, so any controls that fall under this input group will be disabled.

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

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

});

See also

Template:Controls s function c