- Documentation
- Client events
- onClientGUIMove
Event
onClientGUIMove
The player moved a GUI window.
Handler
addEventHandler("onClientGUIMove", root, function() ... end)Source
source is the window.
Example
local win = guiCreateWindow(100, 100, 300, 200, "Panel", false)
addEventHandler("onClientGUIMove", win, function()
local x, y = guiGetPosition(win, false)
outputConsole(("Okno na %d, %d"):format(x, y))
end)