# CFX::CREATE_DUI

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

## Signature

```c
long CREATE_DUI(char* url, int width, int height);
```

## Parameters

- `url` (`char*`) — The initial URL to load in the browser.
- `width` (`int`) — The width of the backing surface.
- `height` (`int`) — The height of the backing surface.

## Returns

`long` — A DUI object.

## Description

*Source: Cfx.re native reference*

Creates a DUI browser. This can be used to draw on a runtime texture using CREATE_RUNTIME_TEXTURE_FROM_DUI_HANDLE.

## Usage

### Lua

```lua
local retval = CreateDui(url, width, height)

-- always available, by hash
local retval = Citizen.InvokeNative(0x23eaf899, url, width, height, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = CreateDui(url, width, height);

// by hash
const retval = Citizen.invokeNative('0x23eaf899', url, width, height, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x23eaf899, url, width, height);
```

*Sources: Cfx.re native reference.*
