M MY Multiplayer: Wiki
Side
Kind

sendDuiMouseMove

Client

Moves the mouse pointer over a dui's page.

bool sendDuiMouseMove(dui dui, int x, int y)

Parameters

NameTypeDescription
duiduiThe dui.
xintPosition on the page, in pixels from its top-left corner.
yintPosition on the page, in pixels from its top-left corner.

Returns

true if it was sent. false with an argument that is not a dui (logs a warning).

Example

local sx, sy = getScreenSize()
local dui = createDui("https://example.com", sx, sy)

addEventHandler("onClientCursorMove", root, function(cx, cy)
    sendDuiMouseMove(dui, math.floor(cx * sx), math.floor(cy * sy))
end)

See also