OnClientMouseLeave
From Multi Theft Auto: Wiki
This event is fired when the user moves the mouse away from a GUI element.
Parameters
- 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
- onClientGUIClick
- onClientGUIDoubleClick
- onClientGUIChanged
- onClientGUIAccepted
- onClientGUIScroll
- onClientClick
- onClientDoubleClick
- onClientKey
- onClientCharacter
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
- onClientCursorMove
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIMove
- onClientGUISize
- onClientGUITabSwitched
Client event functions
- addEvent
- addEventHandler
- cancelEvent
- removeEventHandler
- triggerEvent
- triggerServerEvent
- wasEventCanceled
FROM VERSION 1.3.1 ONWARDS