addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
Window1 = guiCreateWindow((screenW - 397) / 2, (screenH - 188) / 2, 397, 188, "تجريبي", false)
guiWindowSetSizable(Window1, false)
guiSetVisible(Window1,false)
btn1_dm = guiCreateButton(9, 22, 183, 82, "الحصول علي الدم ", false, Window1)
btn2_dar3 = guiCreateButton(204, 22, 183, 82, "الحصول علي الدرع ", false, Window1)
btn3_close = guiCreateButton(129, 135, 139, 43, "اغلاق", false, Window1)
end
)
guiSetVisible (Window1, false )
function OPE()
if guiGetVisible (Window1) then
guiSetVisible (Window1, false )
showCursor(false)
guiSetInputEnabled(false)
else
guiSetVisible (Window1, true )
showCursor(true)
guiSetInputEnabled(true)
end
end
bindKey("F2", "down", OPE)
addEventHandler("onClientGUIClick",root,
function()
if source == btn3_close then
guiSetVisible(Window1,false) showCursor(false)
end
end
)
اطرح الميتا ادا ماشتغل