- Documentation
- Client events
- onClientGUIClose
Event
onClientGUIClose
The player closed a GUI window with the close button.
Handler
addEventHandler("onClientGUIClose", root, function() ... end)Source
source is the window.
Example
local win = guiCreateWindow(100, 100, 300, 200, "Panel", false)
addEventHandler("onClientGUIClose", win, function()
showCursor(false)
end)