RedM Natives

IS_CONTROL_JUST_RELEASED

Hash0x50F940259D3841E6
Runtime nameIsControlJustReleased
NamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x50F940259D3841E6

Signature

BOOL IS_CONTROL_JUST_RELEASED(int control, Hash action);

Parameters

NameTypeDescription
controlint—
actionHash—

Returns BOOL

Usage

Lua
local retval = IsControlJustReleased(control, action)

-- always works, by hash
local retval = Citizen.InvokeNative(0x50F940259D3841E6, control, action, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsControlJustReleased(control, action);

// by hash
const retval = Citizen.invokeNative('0x50F940259D3841E6', control, action, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x50F940259D3841E6, control, action);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.