# CFX::SEND_DUI_MESSAGE

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

## Signature

```c
void SEND_DUI_MESSAGE(long duiObject, char* jsonString);
```

## Parameters

- `duiObject` (`long`) — The DUI browser handle.
- `jsonString` (`char*`) — The message, encoded as JSON.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Sends a message to the specific DUI root page. This is similar to SEND_NUI_MESSAGE.

## Usage

### Lua

```lua
SendDuiMessage(duiObject, jsonString)

-- always available, by hash
Citizen.InvokeNative(0xcd380da9, duiObject, jsonString)
```

### JavaScript

```js
SendDuiMessage(duiObject, jsonString);

// by hash
Citizen.invokeNative('0xcd380da9', duiObject, jsonString);
```

### C#

```csharp
Function.Call((Hash)0xcd380da9, duiObject, jsonString);
```

*Sources: Cfx.re native reference.*
