ControlsClient

isControlJustReleased

IS_CONTROL_JUST_RELEASED0x50F940259D3841E6

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
controlintnumberinteger
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.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns whether a control was newly released since the last check.
control: see isControlEnabled

Reference

Namespace
Controls PAD
In the game
BOOL IS_CONTROL_JUST_RELEASED(int control, int action)
Hash
0x50F940259D3841E6

Open in the interactive natives reference