GUIEditor = {
gridlist = {},
staticimage = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 640) / 2, (screenH - 400) / 2, 640, 400, ":obrazki3/images/3.png", false)
GUIEditor.label[1] = guiCreateLabel(13, 297, 168, 59, " ", false, GUIEditor.staticimage[1])
GUIEditor.gridlist[1] = guiCreateGridList(374, 42, 248, 338, false, GUIEditor.staticimage[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Gracz", 0.9)
guiSetAlpha(GUIEditor.gridlist[1], 0.71)
guiSetVisible(GUIEditor.staticimage[1],false)
end
)
function openPanel()
guiSetVisible(GUIEditor.staticimage[1], true)
showCursor(true)
end
addCommandHandler("pp", openPanel)
function zamykamy()
if source == GUIEditor.label[1] then
guiSetVisible(GUIEditor.staticimage[1],false) showCursor(false)
end
end
addEventHandler("onClientGUIClick", root, zamykamy)