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

Event

onClientGUIClose

ClientInterface (GUI)Trilogy Hub only

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)

See also