0 Üye ve 1 Ziyaretçi konuyu incelemekte.
panel1 = guiCreateWindow(a, b, c, d, "Panel 1", false)guiSetVisible(panel1, false)buton1 = guiCreateButton(a, b, c, d, "Panel 1 Kapat", false, panel1)addEventHandler("onClientGUIClick", root,function()if source == buton1 thenguiSetVisible(panel1, false)showCursor(false)endend)buton2 = guiCreateButton(a, b, c, d, "Panel 2 Aç", false, panel1)addEventHandler("onClientGUIClick", root,function()if source == buton2 thenguiSetVisible(panel1, false)guiSetVisible(panel2, true)endend)
panel2 = guiCreateWindow(a, b, c, d, "Panel 2", false)guiSetVisible(panel2, false)buton3 = guiCreateButton(a, b, c, d, "Kapat Panel 2", false, panel2)addEventHandler("onCilentGUIClick", root,function()if source == buton3 thenguiSetVisible(panel2, false)showCursor(false)endend)
bindKey("F2", "down",function()if (guiGetVisible(panel1) == true) thenguiSetVisible(panel1, false)guiSetVisible(panel2, false)showCursor(false)elseif (guiGetVisible(panel1) == false) thenguiSetVisible(panel1, true)guiSetVisible(panel2, false)showCursor(true)endend)
function panel_ac()if source == buton1 thenguiSetVisible(panel1, false)guiSetVisible(panel2, true)endendaddEventHandler("onClientGUIClick", root, panel_ac)