# CFX::GET_NUI_CURSOR_POSITION

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

## Signature

```c
void GET_NUI_CURSOR_POSITION(int* x, int* y);
```

## Parameters

- `x` (`int*`)
- `y` (`int*`)

## Returns

`void`

## Usage

### Lua

```lua
local x, y = GetNuiCursorPosition()

-- always available, by hash
local x, y = Citizen.InvokeNative(0xbdba226f, Citizen.PointerValueInt(), Citizen.PointerValueInt())
```

### JavaScript

```js
const [x, y] = GetNuiCursorPosition();

// by hash
const [x, y] = Citizen.invokeNative('0xbdba226f', Citizen.pointerValueInt(), Citizen.pointerValueInt());
```

### C#

```csharp
var x = new OutputArgument();
var y = new OutputArgument();
Function.Call((Hash)0xbdba226f, x, y);
// x.GetResult<int>()
// y.GetResult<int>()
```

- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.

*Sources: Cfx.re native reference.*
