Mr.Mostafa Posted April 21, 2018 Share Posted April 21, 2018 آلسلام عليكم آبي لمآ آضغط زر يطلع كلمة في آلشآت محآولتي : addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[9] then outputChatBox('تم آغلآق آللوحة بنجآح',source,0,255,0) end end ) Link to comment
Element666 Posted April 21, 2018 Share Posted April 21, 2018 Quote addEventHandler('onClientGUIClick',root,, function()if (source == GUIEditor.button[9]) thenoutputChatBox('تم آغلآق آللوحة بنجآح',source,0,255,0) end end) Expand Link to comment
iPrestege Posted April 21, 2018 Share Posted April 21, 2018 عليكم السلام اذا الكلمة تبيها تظهر للكل لازم تسوي ترايقر للسيرفر سايد Link to comment
Mr.Mostafa Posted April 21, 2018 Author Share Posted April 21, 2018 On 21/04/2018 at 23:46, iPrestege said: عليكم السلام اذا الكلمة تبيها تظهر للكل لازم تسوي ترايقر للسيرفر سايد Expand لآ كنت آبيهآ تظهر للي ضغط فقط + شكرآ لك + ممكن شرح لترآيقر لآني مآ آعرفه عنه شي ! On 21/04/2018 at 23:46, Lee said: Expand مآ آشتغل بآلعكس لمآ حطيته خرب آللوحة ومآ عآدت تفتح @Lee Link to comment
Element666 Posted April 22, 2018 Share Posted April 22, 2018 عطني الكود الذي استخدمته Link to comment
Mr.Mostafa Posted April 22, 2018 Author Share Posted April 22, 2018 On 22/04/2018 at 00:01, Lee said: عطني الكود الذي استخدمته Expand آلي آنت حآطه فوق addEventHandler('onClientGUIClick',root,, function() if (source == GUIEditor.button[9]) then outputChatBox('تم آغلآق آللوحة بنجآح',source,0,255,0) end end) Link to comment
Element666 Posted April 22, 2018 Share Posted April 22, 2018 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 292) / 2, (screenH - 193) / 2, 292, 193, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton((292 - 95) / 2, (193 - 71) / 2, 95, 71, "Mr.Mostafa", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") end ) addEventHandler('onClientGUIClick',root, function() if (source == GUIEditor.button[1]) then outputChatBox('تم آغلآق آللوحة بنجآح',source,0,255,0) end end) Link to comment
Mr.Mostafa Posted April 22, 2018 Author Share Posted April 22, 2018 (edited) On 22/04/2018 at 00:18, Lee said: GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 292) / 2, (screenH - 193) / 2, 292, 193, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton((292 - 95) / 2, (193 - 71) / 2, 95, 71, "Mr.Mostafa", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") end ) addEventHandler('onClientGUIClick',root, function() if (source == GUIEditor.button[1]) then outputChatBox('تم آغلآق آللوحة بنجآح',source,0,255,0) end end) Expand مب شغآل - رفعت آللوحة فتحت آللوحة ضغطت آلزر مآ جآب شي ! @Lee Edited April 22, 2018 by Mr.Mostafa Link to comment
Doffy Posted April 22, 2018 Share Posted April 22, 2018 (edited) On 22/04/2018 at 05:31, Mr.Mostafa said: آب Expand سوي ترايقر زي ماقلك برستيج فوق ^ علي العموم تفضل addEventHandler('onClientGUIClick',root,, function() if (source == GUIEditor.button[9]) then triggerServerEvent("onClose;Window", localPlayer) end end) --server addEvent("onClose;Window",true) addEventHandler("onClose;Window",root, function( ) outputChatBox('تم آغلآق آللوحة بنجآح',getRootElement(),0,255,0) end ) اما لو تبيها تظهر للاعب بس سوي مثل كذا addEventHandler('onClientGUIClick',root,, function() if (source == GUIEditor.button[9]) then outputChatBox('تم آغلآق آللوحة بنجآح',0,255,0) end end) Edited April 22, 2018 by #DesTroeyR Link to comment
Mr.Mostafa Posted April 22, 2018 Author Share Posted April 22, 2018 On 22/04/2018 at 08:57, #DesTroeyR said: سوي ترايقر زي ماقلك برستيج فوق ^ علي العموم تفضل addEventHandler('onClientGUIClick',root,, function() if (source == GUIEditor.button[9]) then triggerServerEvent("onClose;Window", localPlayer) end end) --server addEvent("onClose;Window",true) addEventHandler("onClose;Window",root, function( ) outputChatBox('تم آغلآق آللوحة بنجآح',getRootElement(),0,255,0) end ) اما لو تبيها تظهر للاعب بس سوي مثل كذا addEventHandler('onClientGUIClick',root,, function() if (source == GUIEditor.button[9]) then outputChatBox('تم آغلآق آللوحة بنجآح',0,255,0) end end) Expand جربت آلترآيقر مآ ظبط جربت آلتآني مآ ظبط بعد حطيت آول كودين آللوحة مآ عآدت تفتح وحطيت تآني كود - آللوحة مآ عآدت تفتح بعد Link to comment
Doffy Posted April 22, 2018 Share Posted April 22, 2018 ايه صح اوك اوك جرب دا addEventHandler('onClientGUIClick',root, function() if (source == GUIEditor.button[9]) then triggerServerEvent("onClose;Window", localPlayer) end end) --server addEvent("onClose;Window",true) addEventHandler("onClose;Window",root, function( ) outputChatBox('تم آغلآق آللوحة بنجآح',getRootElement(),0,255,0) end ) Link to comment
Mr.Mostafa Posted April 22, 2018 Author Share Posted April 22, 2018 On 22/04/2018 at 09:18, #DesTroeyR said: ايه صح اوك اوك جرب دا addEventHandler('onClientGUIClick',root, function() if (source == GUIEditor.button[9]) then triggerServerEvent("onClose;Window", localPlayer) end end) --server addEvent("onClose;Window",true) addEventHandler("onClose;Window",root, function( ) outputChatBox('تم آغلآق آللوحة بنجآح',getRootElement(),0,255,0) end ) Expand آشتغلت ض1 طيب لو آبي آلكود يظهر للي ضغط آلزر فقط ؟ Link to comment
Doffy Posted April 22, 2018 Share Posted April 22, 2018 On 22/04/2018 at 09:24, Mr.Mostafa said: آشتغلت ض1 طيب لو آبي آلكود يظهر للي ضغط آلزر فقط ؟ Expand addEventHandler('onClientGUIClick',root, function() if (source == GUIEditor.button[9]) then outputChatBox('تم آغلآق آللوحة بنجآح',0,255,0) end end) Link to comment
Gat Posted April 25, 2018 Share Posted April 25, 2018 (edited) function click() if source == GUIEditor.Button[9] then outputChatBox("تم إغلاق اللوحة بنجاح", 0, 255, 0) end end addEventHandler("onClientGUIClick", GUIEditor.Button[9], click) Try it. Edited April 25, 2018 by Gat Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now