Controls::disableControlAction

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Client-Side
Function

Js.png JavaScript



Disable a control so it cannot be used.

Syntax

mp.game.controls.disableControlAction(inputGroup, control, disable);

Required Arguments

Return value

  • Boolean

Example

This will disable using the character wheel

Client-Side
mp.events.add('render', () => {
    mp.game.controls.disableControlAction(2, 19, true);
});

See also

Controls_s_function_c