ما يحتاج حدث اذا اشتغل المود ذذ,
function centerWindow(center_window)
local screenW,screenH=guiGetScreenSize()
local windowW,windowH=guiGetSize(center_window,false)
local x,y = (screenW-windowW)/2,(screenH-windowH)/2
guiSetPosition(center_window,x,y,false)
end
GUIEditor = {
button = {},
window = {},
staticimage = {},
label = {}
}
GUIEditor.window[1] = guiCreateWindow(992, 159, 230, 556, "لوحة تحكم الزائر", false)
centerWindow(GUIEditor.window[1])
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF13FFFC")