ControlsClient

isDisabledControlReleased

IS_DISABLED_CONTROL_RELEASED0xFB6C4072E9A32E92

The GTA V native IS_DISABLED_CONTROL_RELEASED of the PAD namespace, as LS:MP client scripts call it: the global function isDisabledControlReleased, in JavaScript and in Lua.

SignatureJavaScript
isDisabledControlReleased(control: number, action: number): boolean
SignatureLua
isDisabledControlReleased(control: integer, action: integer): boolean

Usage

JavaScript
const result = isDisabledControlReleased(control, action);
Lua
local result = isDisabledControlReleased(control, action)

Parameters

ParameterTypeJavaScriptLuaDescription
controlintnumberintegersee isControlEnabled
actionintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

On LS:MP

ℹ
Input while LS:MP has the focus

While the LS:MP menu, the console or a focused browser holds the keyboard and mouse, this native does not reach the game: it returns true, a control at rest is released.

Reference

Namespace
Controls PAD
In the game
BOOL IS_DISABLED_CONTROL_RELEASED(int control, int action)
Hash
0xFB6C4072E9A32E92
Introduced
Game build 757 legacy numbering

Open in the interactive natives reference