IS_DISABLED_CONTROL_PRESSED
Hash
0xE2587F8CBBD87B1DRuntime name
IsDisabledControlPressedNamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xE2587F8CBBD87B1DSignature
BOOL IS_DISABLED_CONTROL_PRESSED(int control, Hash action);Parameters
| Name | Type | Description |
|---|---|---|
control | int | — |
action | Hash | — |
Returns BOOL
Usage
local retval = IsDisabledControlPressed(control, action)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE2587F8CBBD87B1D, control, action, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsDisabledControlPressed(control, action);
// by hash
const retval = Citizen.invokeNative('0xE2587F8CBBD87B1D', control, action, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xE2587F8CBBD87B1D, control, action);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.