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