Controls::disableControlAction
Revision as of 09:27, 14 January 2019 by MrPancakers (talk | contribs)
Contents
Client-Side Function
Disable a control so it cannot be used.
Syntax
mp.game.controls.disableControlAction(inputGroup, control, disable);
Required Arguments
- inputGroup: Int (Input Groups)
- control: Int (Game Controls)
- disable: Boolean
Return value
- Boolean
Example
This will disable using the character wheel
Client-Side
mp.events.add('render', () => {
mp.game.controls.disableControlAction(2, 19, true);
});