Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: zamknąc
1. panel nie chce się zamknąc
mam taki kod i panel nie chce sie zamknac
[lua]
GUIEditor = {
gridlist = {},
staticimage = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 640) / 2, (screenH - 400) / 2, 640, 400, ":obrazki5/images/1.png", false)
GUIEditor.label[1] = guiCreateLabel(10, 304, 217, 65, " ---- ", false, GUIEditor.staticimage[1])

GUIEditor.button[2] = guiCreateButton(10, 154, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.button[3] = guiCreateButton(10, 229, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.button[4] = guiCreateButton(10, 304, 217, 65, "", false, GUIEditor.staticimage[1])
GUIEditor.gridlist[1] = guiCreateGridList(360, 47, 270, 343, false, GUIEditor.staticimage[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Gracz", 0.9)
guiSetAlpha(GUIEditor.gridlist[1], 0.72)
end
)

function openPanel()
guiSetVisible(GUIEditor.staticimage[1], true)
showCursor(true)
end
addCommandHandler("pdp", openPanel)

function zamykamy()
if source == GUIEditor.label[1] then
guiSetVisible(GUIEditor.staticimage[1],false)
showCursor(false)
end
end
addEventHandler("onClientGUIClick", root, zamykamy)
[/lua]
w db3 mam cos takiego :
http://i.imgur.com...