# CFX::GET_DUI_HANDLE

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

## Signature

```c
char* GET_DUI_HANDLE(long duiObject);
```

## Parameters

- `duiObject` (`long`) — The DUI browser handle.

## Returns

`char*` — The NUI window handle, for use in e.g. CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE.

## Description

*Source: Cfx.re native reference*

Returns the NUI window handle for a specified DUI browser object.

## Usage

### Lua

```lua
local retval = GetDuiHandle(duiObject)

-- always available, by hash
local retval = Citizen.InvokeNative(0x1655d41d, duiObject, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetDuiHandle(duiObject);

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

### C#

```csharp
string retval = Function.Call<string>((Hash)0x1655d41d, duiObject);
```

*Sources: Cfx.re native reference.*
