Controls::disableAllControlActions
Revision as of 09:30, 14 January 2019 by MrPancakers (talk | contribs)
Contents
Client-Side Function
Disables all controls within a given Input Group.
Syntax
mp.game.controls.disableAllControlActions(inputGroup);
Required Arguments
- inputGroup: Int (Input Groups)
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);
});