SEND_DUI_MESSAGE
Sends a message to the specific DUI root page.
Signature
void SEND_DUI_MESSAGE(long duiObject, char* jsonString);Parameters
| Name | Type | Description |
|---|---|---|
duiObject | long | The DUI browser handle. |
jsonString | char* | The message, encoded as JSON. |
Returns void
Description
Sends a message to the specific DUI root page. This is similar to SEND_NUI_MESSAGE.
Usage
SendDuiMessage(duiObject, jsonString)
-- always works, by hash
Citizen.InvokeNative(0xcd380da9, duiObject, jsonString)JavaScript and C#
SendDuiMessage(duiObject, jsonString);
// by hash
Citizen.invokeNative('0xcd380da9', duiObject, jsonString);Function.Call((Hash)0xcd380da9, duiObject, jsonString);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.