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

Event

onClientGUIMove

ClientInterface (GUI)Identical to MTA:SA

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)

See also