function funkcja()
okno = guiCreateWindow(0.35, 0.4, 0.3, 0.25, "Tytul", true)
przycisk = guiCreateButton ( 0.6, 0.67, 0.3, 0.15, "Click", true, okno)
showCursor(true)
end
addEvent("wyswietlOkno",true)
addEventHandler("wyswietlOkno", getRootElement(), funkcja)
function zamkniecie (button)
guiSetVisible(okno,false)
end
addEventHandler("onClientGUIClick", przycisk, zamkniecie)