جرب :
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
wPanel = guiCreateWindow((screenW - 358) / 2, (screenH - 395) / 2, 358, 395, "F9", false)
guiWindowSetSizable(wPanel, false)
guiSetAlpha(wPanel, 1.00)
Warp = guiCreateButton(60, 59, 241, 166, "لوحة حفظ المكان", false, wPanel)
guiSetProperty(Warp, "NormalTextColour", "FFAAAAAA")
Close = guiCreateButton(285, 350, 41, 27, "X", false, wPanel)
guiSetProperty(Close, "NormalTextColour", "FFAAAAAA")
guiSetVisible(wPanel,false)
end
)
bindKey("F9","down",
function ()
guiSetVisible(wPanel,not guiGetVisible(wPanel))
showCursor(guiGetVisible(wPanel))
end)
addEventHandler ("onClientGUIClick", root, function ( )
if (source == Warp) then
guiSetVisible(wPanel, false)
showCursor(false)
guiSetInputEnabled(false)
end
end
)