# CFX::IS_NUI_FOCUSED

- **Hash:** `0x98545E6D`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `IsNuiFocused`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/IS_NUI_FOCUSED

## Signature

```c
BOOL IS_NUI_FOCUSED();
```

## Returns

`BOOL` — True or false.

## Description

*Source: Cfx.re native reference*

Returns the current NUI focus state previously set with `SET_NUI_FOCUS`.

## Usage

### Lua

```lua
local retval = IsNuiFocused()

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

### JavaScript

```js
const retval = IsNuiFocused();

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

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x98545e6d);
```

*Sources: Cfx.re native reference.*
