ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientMouseEnter

Event

onClientMouseEnter

The cursor moved over a GUI control. Useful for highlights and tooltips.

Handler

addEventHandler("onClientMouseEnter", root, function(absoluteX, absoluteY) ... end)

Parameters

absoluteXint
X.
absoluteYint
Y.

Differences from MTA:SA

  • These MTA:SA parameters are not here: element leftGUI

In MTA:SA

function(int absoluteX, int absoluteY, element leftGUI)

Source

source is the control.

Example

local btn = guiCreateButton(20, 200, 120, 30, "Kup", false)
addEventHandler("onClientMouseEnter", btn, function()
    guiSetAlpha(btn, 1)
end, false)

See also