IS_DISABLED_RAW_KEY_RELEASED
Gets if the specified rawKeyIndex was released, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME.
Signature
BOOL IS_DISABLED_RAW_KEY_RELEASED(int rawKeyIndex);Parameters
| Name | Type | Description |
|---|---|---|
rawKeyIndex | int | Index of raw key from keyboard. |
Returns BOOL — Returns bool value of released state.
Description
Gets if the specified rawKeyIndex was released, even if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME.
Virtual key codes can be found here
Usage
local retval = IsDisabledRawKeyReleased(rawKeyIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x72b66c09, rawKeyIndex, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsDisabledRawKeyReleased(rawKeyIndex);
// by hash
const retval = Citizen.invokeNative('0x72b66c09', rawKeyIndex, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x72b66c09, rawKeyIndex);Examples
if IsDisabledRawKeyReleased(32) then -- KEY_SPACE
print("Spacebar released")
endSources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.