- Documentation
- Client events
- onClientGUIMouseDown
Event
onClientGUIMouseDown
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)