سلام عليكم
شباب انا جربت اسوي شيء بس ماظبط معاي ومافية اخطاء بالدي بوق
local Functions = {
[1] = { Button = join , Function = joinJob },
[2] = { Button = ex , Function = closeWindow },
[3] = { Button = leave , Function = leaveJob },
[4] = { Button = ex_1 , Function = closeWindow1 },
}
addEventHandler("onClientGUIClick",resourceRoot,function()
for index = 1 , #Functions do
if ( source == Functions [ index ] [ "Button" ] ) then
Functions [ index ] [ "Function" ] ()
end
end
end
)