# CFX::SET_NUI_FOCUS

- **Hash:** `0x5B98AE30`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetNuiFocus`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/SET_NUI_FOCUS

## Signature

```c
void SET_NUI_FOCUS(BOOL hasFocus, BOOL hasCursor);
```

## Parameters

- `hasFocus` (`BOOL`)
- `hasCursor` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetNuiFocus(hasFocus, hasCursor)

-- always available, by hash
Citizen.InvokeNative(0x5b98ae30, hasFocus, hasCursor)
```

### JavaScript

```js
SetNuiFocus(hasFocus, hasCursor);

// by hash
Citizen.invokeNative('0x5b98ae30', hasFocus, hasCursor);
```

### C#

```csharp
Function.Call((Hash)0x5b98ae30, hasFocus, hasCursor);
```

*Sources: Cfx.re native reference.*
