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

Event

onClientGUIMouseDown

ClientInterface (GUI)Identical to MTA:SA

The player pressed a mouse button over a GUI control.

Handler

addEventHandler("onClientGUIMouseDown", root, function(button, absoluteX, absoluteY) ... end)

Parameters

buttonstring
The button.
absoluteXint
X.
absoluteYint
Y.

Source

source is the control.

Example

addEventHandler("onClientGUIMouseDown", root, function(button)
    outputConsole("Wciśnięto " .. button)
end)

See also