# CFX::IS_DISABLED_RAW_KEY_UP

- **Hash:** `0x2C033875`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `IsDisabledRawKeyUp`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described with examples
- **URL:** https://natives.borderlinerp.com/natives/CFX/IS_DISABLED_RAW_KEY_UP

## Signature

```c
BOOL IS_DISABLED_RAW_KEY_UP(int rawKeyIndex);
```

## Parameters

- `rawKeyIndex` (`int`) — Index of raw key from keyboard.

## Returns

`BOOL` — Returns bool value of up state.

## Description

*Source: Cfx.re native reference*

Gets if the specified `rawKeyIndex` is up, even if the key is disabled with [DISABLE_RAW_KEY_THIS_FRAME](#\_0x8BCF0014).

Virtual key codes can be found [here](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes)

## Usage

### Lua

```lua
local retval = IsDisabledRawKeyUp(rawKeyIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0x2c033875, rawKeyIndex, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsDisabledRawKeyUp(rawKeyIndex);

// by hash
const retval = Citizen.invokeNative('0x2c033875', rawKeyIndex, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x2c033875, rawKeyIndex);
```

## Examples

*Source: Cfx.re native reference*

```lua
if IsDisabledRawKeyUp(32) then -- KEY_SPACE
    print("Spacebar is up")
end
```

*Sources: Cfx.re native reference.*
