ControlsClient

isDisabledControlJustReleased

IS_DISABLED_CONTROL_JUST_RELEASED0x305C8DCD79DA8B0F

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

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

Usage

JavaScript
const result = isDisabledControlJustReleased(control, action);
Lua
local result = isDisabledControlJustReleased(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 false.

Reference

Namespace
Controls PAD
In the game
BOOL IS_DISABLED_CONTROL_JUST_RELEASED(int control, int action)
Hash
0x305C8DCD79DA8B0F

Open in the interactive natives reference