OnClientMouseLeave

From Multi Theft Auto: Wiki
Revision as of 14:23, 4 March 2008 by R3mp (talk | contribs) (→‎Example)
Jump to navigation Jump to search

This event is fired when the user moves the mouse away from a GUI element.

Parameters

int absoluteX, int absoluteY
  • absoluteX: the X position of the mouse cursor, in pixels, measured from the left side of the screen.
  • absoluteY: the Y position of the mouse cursor, in pixels, measured from the top of the screen.

Source

The source of this event is the GUI element that the mouse was moved from.

Example

This example shows a message when you move the mouse away from a GUI element.

addEventHandler("onClientMouseLeave", getRootElement(), function(aX, aY)
    outputChatBox("You're no longer pointing at a GUI element at (" .. tostring(aX) .. ", " .. tostring(aY) .. ")")
end)

See Also

GUI events

Input

GUI


Client event functions