وعليكم السلام فيك تجرب كذا
--------
local screenW, screenH = guiGetScreenSize()
--------
bool = false
--------
function Panel()
if bool == true then
dxDrawLine(318 - 1, 113 - 1, 318 - 1, 619, tocolor(173, 0, 146, 202), 1, false)
dxDrawLine(1012, 113 - 1, 318 - 1, 113 - 1, tocolor(173, 0, 146, 202), 1, false)
dxDrawLine(318 - 1, 619, 1012, 619, tocolor(173, 0, 146, 202), 1, false)
dxDrawLine(1012, 619, 1012, 113 - 1, tocolor(173, 0, 146, 202), 1, false)
dxDrawRectangle(318, 113, 694, 506, tocolor(1, 0, 1, 202), false)
dxDrawRectangle(359, 142, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawRectangle(screenW * 0.3492, screenH * 0.1849, screenW * 0.0000, screenH * 0.0221, tocolor(4, 2, 7, 220), true)
dxDrawText("Goving سيرفر", (screenW * 0.2335) - 1, (screenH * 0.7773) - 1, (screenW * 0.7408) - 1, (screenH * 0.8060) - 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false)
dxDrawText("Goving سيرفر", (screenW * 0.2335) + 1, (screenH * 0.7773) - 1, (screenW * 0.7408) + 1, (screenH * 0.8060) - 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false)
dxDrawText("Goving سيرفر", (screenW * 0.2335) - 1, (screenH * 0.7773) + 1, (screenW * 0.7408) - 1, (screenH * 0.8060) + 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false)
dxDrawText("Goving سيرفر", (screenW * 0.2335) + 1, (screenH * 0.7773) + 1, (screenW * 0.7408) + 1, (screenH * 0.8060) + 1, tocolor(0, 0, 0, 254), 1.80, "default-bold", "center", "center", false, false, false, true, false)
dxDrawText("Goving سيرفر", screenW * 0.2335, screenH * 0.7773, screenW * 0.7408, screenH * 0.8060, tocolor(151, 255, 185, 245), 1.80, "default-bold", "center", "center", false, false, false, true, false)
dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) - 1, (screenH * 0.1484) - 1, (screenW * 0.7372) - 1, (screenH * 0.1979) - 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false)
dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) + 1, (screenH * 0.1484) - 1, (screenW * 0.7372) + 1, (screenH * 0.1979) - 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false)
dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) - 1, (screenH * 0.1484) + 1, (screenW * 0.7372) - 1, (screenH * 0.1979) + 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false)
dxDrawText("اللوحة الرئيسية", (screenW * 0.2372) + 1, (screenH * 0.1484) + 1, (screenW * 0.7372) + 1, (screenH * 0.1979) + 1, tocolor(58, 1, 1, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false)
dxDrawText("اللوحة الرئيسية", screenW * 0.2372, screenH * 0.1484, screenW * 0.7372, screenH * 0.1979, tocolor(217, 67, 254, 254), 1.70, "default-bold", "center", "center", true, false, true, true, false)
end
end
--------
GUIEditor = {
button = {}
}
GUIEditor.button[1] = guiCreateButton(0.24, 0.23, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "F5FF97EE")
guiSetVisible(GUIEditor.button[1], false)
GUIEditor.button[2] = guiCreateButton(0.24, 0.30, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "F5FF97EE")
guiSetVisible(GUIEditor.button[2], false)
GUIEditor.button[3] = guiCreateButton(0.24, 0.36, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "F5FF97EE")
guiSetVisible(GUIEditor.button[3], false)
GUIEditor.button[4] = guiCreateButton(0.24, 0.30, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "F5FF97EE")
guiSetVisible(GUIEditor.button[7], false)
GUIEditor.button[4] = guiCreateButton(0.24, 0.50, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "F5FF97EE")
guiSetVisible(GUIEditor.button[5], false)
GUIEditor.button[6] = guiCreateButton(0.24, 0.57, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "F5FF97EE")
guiSetVisible(GUIEditor.button[6], false)
GUIEditor.button[7] = guiCreateButton(0.24, 0.43, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[7], "default-bold-small")
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "F5FF97EE")
guiSetVisible(GUIEditor.button[7], false)
GUIEditor.button[8] = guiCreateButton(0.24, 0.64, 0.11, 0.06, "معلومات الشخصية", true)
guiSetFont(GUIEditor.button[8], "default-bold-small")
guiSetProperty(GUIEditor.button[8], "NormalTextColour", "F5FF97EE")
--------
function OpenPanel()
bool = not bool
if removeEventHandler("onClientRender", root, Panel) then
removeEventHandler("onClientRender", root, Panel)
guiSetVisible(GUIEditor.button[1], false)
guiSetVisible(GUIEditor.button[2], false)
guiSetVisible(GUIEditor.button[3], false)
guiSetVisible(GUIEditor.button[4], false)
guiSetVisible(GUIEditor.button[5], false)
guiSetVisible(GUIEditor.button[6], false)
guiSetVisible(GUIEditor.button[7], false)
guiSetVisible(GUIEditor.button[8], false)
showCursor(false)
else
addEventHandler("onClientRender", root, Panel)
guiSetVisible(GUIEditor.button[1], true)
guiSetVisible(GUIEditor.button[2], true)
guiSetVisible(GUIEditor.button[3], true)
guiSetVisible(GUIEditor.button[4], true)
guiSetVisible(GUIEditor.button[5], true)
guiSetVisible(GUIEditor.button[6], true)
guiSetVisible(GUIEditor.button[7], true)
guiSetVisible(GUIEditor.button[8], true)
showCursor(true)
end
end
bindKey("F5", "down", OpenPanel)
و الأزرار فيك تكملها عادي بشكل طبعي تضيفها تحت فتح لوحة وتكمل
وحاول انك تتعلم اساسيات البرمجة ولأشياء هاذي عشان مو دايم حد رح يساعدك بتوفيق لك