RedM Natives

SEND_DUI_MESSAGE

Sends a message to the specific DUI root page.

Hash0xCD380DA9
Runtime nameSendDuiMessage
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SEND_DUI_MESSAGE(long duiObject, char* jsonString);

Parameters

NameTypeDescription
duiObjectlong

The DUI browser handle.

jsonStringchar*

The message, encoded as JSON.

Returns void

Description

Cfx.re native reference

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

Usage

Lua
SendDuiMessage(duiObject, jsonString)

-- always works, by hash
Citizen.InvokeNative(0xcd380da9, duiObject, jsonString)
JavaScript and C#
JavaScript
SendDuiMessage(duiObject, jsonString);

// by hash
Citizen.invokeNative('0xcd380da9', duiObject, jsonString);
C#
Function.Call((Hash)0xcd380da9, duiObject, jsonString);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.