Controls::disableControlAction: Difference between revisions
m (Replaced HTML with template) |
|||
| Line 1: | Line 1: | ||
<pre> | |||
mp.game.controls.disableControlAction(inputGroup, control, disable); | |||
</pre> | |||
=== Required Arguments === | === Required Arguments === | ||
*'''inputGroup:''' int | *'''inputGroup:''' int | ||
*'''control:''' int | *'''control:''' int | ||
*'''disable:''' Boolean | *'''disable:''' Boolean | ||
===Return value=== | ===Return value=== | ||
*'''Boolean''' | *'''Boolean''' | ||
==Example== | ==Example== | ||
{{ClientsideCode| | |||
<pre> | |||
< | |||
mp.events.add('render', () => { | mp.events.add('render', () => { | ||
mp.game.controls.disableControlAction(2, 19, true); | mp.game.controls.disableControlAction(2, 19, true); | ||
}); | }); | ||
</ | </pre> | ||
}} | |||
==See also== | ==See also== | ||
[[Controls_s_function_c]] | |||
*[[Controls|Game Controls]] | *[[Controls|Game Controls]] | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 13:04, 26 October 2018
mp.game.controls.disableControlAction(inputGroup, control, disable);
Required Arguments
- inputGroup: int
- control: int
- disable: Boolean
Return value
- Boolean
Example
Client-Side
mp.events.add('render', () => {
mp.game.controls.disableControlAction(2, 19, true);
});