سويتلك تنفتح اللوحة من زر والدي اكس , وتنغلق بعد الضغط مرة اخرى
Show = false
function DXpanel()
dxDrawText("Gafwa", 588, 755, 660, 783, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false)
dxDrawRectangle(465, 580, 304, 8, tocolor(255, 255, 255, 255), true)
end
bindKey("D", "down",
function ()
if Show == false then
Show = true
addEventHandler("onClientRender",root,DXpanel)--نظهر لوحة الدي اكس
showCursor(true)
guiSetVisible(GUIEditor.window[1],true)
elseif Show == true then
Show = false
removeEventHandler("onClientRender", root, dxWindow)
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
end)
addEventHandler("onClientClick",root,
function ()
if ( source == GUIEditor.button[5] ) then
guiSetVisible(GUIEditor.window[1],false)
removeEventHandler("onClientRender",root, DXpanel)
showCursor(false)
end
end
مدري اذا عندك يفتح زر أو كومند