جرب
local Key = "F5" --هنا زر الفتح
GUIEditor = {
label = {},
staticimage = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
Window = guiCreateWindow((screenW - 606) / 2, (screenH - 236) / 2, 606, 236, "❖〣┘ لوحــة الفلــم ┌〣❖", false)
guiWindowSetSizable(Window, false)
guiSetAlpha(Window, 1.00)
guiSetVisible(Window,false)
GUIEditor.label[1] = guiCreateLabel(187, 26, 238, 20, " ❖┘ إكتمـل التصويــر شكــرا لجهودكــم معنــا ┌❖", false, Window)
guiLabelSetColor(GUIEditor.label[1], 0, 255, 227)
GUIEditor.label[2] = guiCreateLabel(482, 56, 110, 20, "❍ بعـنوان \"الزومبـي\"", false, Window)
guiLabelSetColor(GUIEditor.label[2], 255, 209, 0)
GUIEditor.label[3] = guiCreateLabel(142, 206, 314, 20, "〝لاتـسو لايـك وإشـتراكـ بالقـناة حتـى يصـلكم كـل جديـد〞", false, Window)
guiLabelSetColor(GUIEditor.label[3], 30, 255, 0)
Copy = guiCreateButton(456, 137, 70, 40, "❖|نسـخ|❖", false, Window)
guiSetProperty(Copy, "NormalTextColour", "FF1EFF00")
GUIEditor.label[4] = guiCreateLabel(4, 181, 610, 15, "_________________________________________________________________________________________", false, Window)
GUIEditor.label[5] = guiCreateLabel(-3, 107, 610, 15, "_______________________________________________________________________", false, Window)
GUIEditor.label[6] = guiCreateLabel(14, 147, 426, 20, "https://www.youtube.com/channel/UCysAMzPfDn5VNAeSia6EUpw", false, Window)
Close1 = guiCreateButton(560, 198, 37, 28, "✘", false, Window)
guiSetProperty(Close1, "NormalTextColour", "FFFD0000")
Filmey = guiCreateButton(19, 67, 210, 40, "❖| الممثليـن فـي الفـلم |❖", false, Window)
guiSetProperty(Filmey, "NormalTextColour", "FFFF00E4")
GUIEditor.label[7] = guiCreateLabel(506, 107, 81, 15, "» رابط القنـاة «", false, Window)
guiLabelSetColor(GUIEditor.label[7], 255, 209, 0)
GUIEditor.label[8] = guiCreateLabel(17, 211, 69, 15, "MƬA ƑἷLMЄَƳ", false, Window)
guiLabelSetColor(GUIEditor.label[8], 255, 209, 0)
GUIEditor.staticimage[1] = guiCreateStaticImage(430, 30, 16, 16, ":guieditor/images/dx_elements/checkbox_tick.png", false, Window)
end
)
--
GUIEditor = {
gridlist = {},
window = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
local screenW, screenH = guiGetScreenSize()
GUIEditor.window[1] = guiCreateWindow((screenW - 419) / 2, (screenH - 426) / 2, 419, 426, "❖〣┘ الممثليـن ┌〣❖", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.gridlist[1] = guiCreateGridList(18, 67, 383, 237, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "اللإسـم", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "النسبة", 0.5)
for i = 1, 14 do
guiGridListAddRow(GUIEditor.gridlist[1])
end
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "!_#[D]R[D]EATH_M.F.A", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 253, 232, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "60%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "#-'NeSaN", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 1, 1, 253, 0, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "80%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "#-JnOn,V9", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 2, 1, 253, 0, 250, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 2, 2, "60%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "#mR-',F5-[A]-mH,<:V9", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 3, 1, 0, 24, 253, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 3, 2, "60%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "7{M}OD", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 4, 1, 1, 253, 233, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 4, 2, "70%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "G-A-B-R-Y", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 5, 1, 48, 255, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 5, 2, "75%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "MR.SAMSUNG", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 6, 1, 255, 0, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 6, 2, "80%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "MRJoOoJ", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 7, 1, 255, 89, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 7, 2, "85%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "MaxPayne|M.F.A", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 8, 1, 0, 17, 255, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 8, 2, "75%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 9, 1, "SOnY", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 9, 1, 255, 0, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 9, 2, "90%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 10, 1, "She5_HeRoOoS", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 10, 1, 239, 0, 255, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 10, 2, "85%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 11, 1, "Wex{Q.5}", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 11, 1, 12, 255, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 11, 2, "60%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 12, 1, "{mafia}ahmed212", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 12, 1, 255, 251, 0, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 12, 2, "70%", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 13, 1, "~DevO", false, false)
guiGridListSetItemColor(GUIEditor.gridlist[1], 13, 1, 0, 255, 221, 255)
guiGridListSetItemText(GUIEditor.gridlist[1], 13, 2, "70%", false, false)
GUIEditor.label[1] = guiCreateLabel(287, 32, 104, 21, "❖ أبطـال الفـلم : ❖", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[1], 30, 255, 0)
GUIEditor.label[2] = guiCreateLabel(22, 339, 379, 18, "❖ تـم رفـع رتـب الممثلـين , سيـتم تخفيـض الرتـبة فـي حالـة اللإستبعـاد ❖", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[2], 0, 255, 203)
GUIEditor.label[3] = guiCreateLabel(18, 314, 383, 15, "❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[3], 255, 215, 0)
GUIEditor.label[4] = guiCreateLabel(18, 367, 383, 15, "❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖❖", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[4], 255, 215, 0)
Close2 = guiCreateButton(358, 392, 43, 28, "✘", false, GUIEditor.window[1])
guiSetProperty(Close2, "NormalTextColour", "FFFD0000")
GUIEditor.label[5] = guiCreateLabel(18, 395, 104, 21, "MƬA ƑἷLMЄَƳ", false, GUIEditor.window[1])
guiLabelSetColor(GUIEditor.label[5], 30, 255, 0)
end
)
--
bindKey(Key,"down", --عند الضغط على الزر المحدد
function()
guiSetVisible(Window,not guiGetVisible(Window))--اظهار اللوحة
showCursor(guiGetVisible(Window)) --اظهار الماوس
end)
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
if (source ==Close1) then --يتحقق من اسم الزر
guiSetVisible(Window,false) -- اغلاق اللوحة
showCursor(false) --اخفاء الماوس
end
end)
addEventHandler("onClientGUIClick",root,
function()
if ( source == Copy ) then
local text = guiGetText ( GUIEditor.label[6] )
setClipboard( text )
end
end
)
--
addEventHandler("onClientGUIClick",root,
function ()
if source == Filmey then
if ( guiGetVisible(Help_Wnd) == false ) then
guiSetVisible(Window,false)
showCursor(false)
guiSetInputEnabled(false)
end
guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1]))
showCursor(guiGetVisible(GUIEditor.window[1]))
guiSetInputEnabled(guiGetVisible(GUIEditor.window[1]))
end
end
)
--
addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة
if (source ==Close2) then --يتحقق من اسم الزر
guiSetVisible(GUIEditor.window[1],false) -- اغلاق اللوحة
showCursor(false) --اخفاء الماوس
guiSetInputEnabled(false)
end
end)