RedM Natives

SEND_DUI_MOUSE_MOVE

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

Hash0xD9D7A0AA
Runtime nameSendDuiMouseMove
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SEND_DUI_MOUSE_MOVE(long duiObject, int x, int y);

Parameters

NameTypeDescription
duiObjectlong

The DUI browser handle.

xint

The mouse X position.

yint

The mouse Y position.

Returns void

Description

Cfx.re native reference

Injects a 'mouse move' event for a DUI object. Coordinates are in browser space.

Usage

Lua
SendDuiMouseMove(duiObject, x, y)

-- always works, by hash
Citizen.InvokeNative(0xd9d7a0aa, duiObject, x, y)
JavaScript and C#
JavaScript
SendDuiMouseMove(duiObject, x, y);

// by hash
Citizen.invokeNative('0xd9d7a0aa', duiObject, x, y);
C#
Function.Call((Hash)0xd9d7a0aa, duiObject, x, y);

Sources

Cfx.re native reference

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