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

Event

onClientGUISize

ClientInterface (GUI)Identical to MTA:SA

The player resized a GUI window.

Handler

addEventHandler("onClientGUISize", root, function() ... end)

Source

source is the window.

Example

local win = guiCreateWindow(100, 100, 300, 200, "Panel", false)
addEventHandler("onClientGUISize", win, function()
    local w, h = guiGetSize(win, false)
    outputConsole(("Rozmiar %dx%d"):format(w, h))
end)

See also