RedM Natives

SEND_DUI_MOUSE_DOWN

Injects a 'mouse down' event for a DUI object.

Hash0x5D01F191
Runtime nameSendDuiMouseDown
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SEND_DUI_MOUSE_DOWN(long duiObject, char* button);

Parameters

NameTypeDescription
duiObjectlong

The DUI browser handle.

buttonchar*

Either 'left', 'middle' or 'right'.

Returns void

Description

Cfx.re native reference

Injects a 'mouse down' event for a DUI object. Coordinates are expected to be set using SEND_DUI_MOUSE_MOVE.

Usage

Lua
SendDuiMouseDown(duiObject, button)

-- always works, by hash
Citizen.InvokeNative(0x5d01f191, duiObject, button)
JavaScript and C#
JavaScript
SendDuiMouseDown(duiObject, button);

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

Sources

Cfx.re native reference

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