EdeN Posted April 11, 2016 Posted April 11, 2016 السلام عليكم الكود : اذا ضغط على GUIbutton يفتح نافذ
Me[Z]oO Posted April 11, 2016 Posted April 11, 2016 addEventHandler("onClientGUIClick",root, function() if source == GUIbutton then guiSetVisible(اسم اللوحة,true) showCursor(true) end end)
EdeN Posted April 11, 2016 Author Posted April 11, 2016 ممكن توضيح النافذ الاول GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") end ) النافذ الثاني GUIEditor = { checkbox = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) end ) كود الربط addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[2]],true) showCursor(true) end end)
taha201100 Posted April 11, 2016 Posted April 11, 2016 GUIEditor = { button = {}, window = {}, checkbox = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible (GUIEditor.window[2],2) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[2],true) showCursor(true) end end)
EdeN Posted April 11, 2016 Author Posted April 11, 2016 GUIEditor = { button = {}, window = {}, checkbox = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible (GUIEditor.window[2],2) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[2],true) showCursor(true) end end) النوافذ متداخله في بعض والنافذ المفترض يطلع لمن يضغط على الزر
taha201100 Posted April 11, 2016 Posted April 11, 2016 GUIEditor = { button = {}, window = {}, checkbox = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible (GUIEditor.window[2],false) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[2],true) guiSetVisible(GUIEditor.window[1],false) showCursor(true) end end)
EdeN Posted April 11, 2016 Author Posted April 11, 2016 GUIEditor = { button = {}, window = {}, checkbox = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible (GUIEditor.window[2],false) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[2],true) guiSetVisible(GUIEditor.window[1],false) showCursor(true) end end) نفس المشكله
EdeN Posted April 11, 2016 Author Posted April 11, 2016 ممكن تفهمني صديقي وش تبي تسوي بالضبط؟ نافذ فيه زر اذا ضغط على الزر يفتح نافذ ثاني
#Mr.Rajo~,< Posted April 11, 2016 Posted April 11, 2016 GUIEditor = { button = {}, window = {}, checkbox = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiSetVisible(GUIEditor.window[2],false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible (GUIEditor.window[2],false) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) end ) bindKey("f2" ,"down" , function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[2],true) guiSetVisible(GUIEditor.window[1],false) showCursor(true) end end) f2 للفتح
Abdul KariM Posted April 11, 2016 Posted April 11, 2016 GUIEditor = { button = {}, checkbox = {}, label = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1] , false ) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") -- Wind 2 GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible ( GUIEditor.window[2] , false ) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) -- نقفل الاولى guiSetVisible(GUIEditor.window[2],true) -- نفتح الثانية showCursor(true) end end ) ;
EdeN Posted April 11, 2016 Author Posted April 11, 2016 GUIEditor = { button = {}, checkbox = {}, label = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1] , false ) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") -- Wind 2 GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible ( GUIEditor.window[2] , false ) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) -- نقفل الاولى guiSetVisible(GUIEditor.window[2],true) -- نفتح الثانية showCursor(true) end end ) ; مايشتغل
Abdul KariM Posted April 11, 2016 Posted April 11, 2016 شغال , لاكن انت مانتب ضايف كود لفتح اللوحة عشان كذا تحسبه مايشتغل
Ahmed Ly Posted April 11, 2016 Posted April 11, 2016 جرب كود هدا و ادا و ما اشتغل اتاكد من ملف الميتا GUIEditor = { button = {}, window = {}, checkbox = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") ------------------------------------------------------------------------------------------------------- GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiSetVisible(GUIEditor.window[2],false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible (GUIEditor.window[2],false) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) function Open() if guiGetVisible (GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) showChat(true) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) showChat(false) end end bindKey("F2", "down", Open) function Click () if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[2],true) guiSetVisible(GUIEditor.window[1],false) showCursor(true) end end addEventHandler("onClientGUIClick",root,Click)
EdeN Posted April 11, 2016 Author Posted April 11, 2016 جرب كود هدا و ادا و ما اشتغل اتاكد من ملف الميتا GUIEditor = { button = {}, window = {}, checkbox = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(511, 142, 398, 443, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(36, 150, 324, 112, "هنا", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") ------------------------------------------------------------------------------------------------------- GUIEditor.window[2] = guiCreateWindow(520, 120, 406, 409, "", false) guiSetVisible(GUIEditor.window[2],false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible (GUIEditor.window[2],false) GUIEditor.checkbox[2] = guiCreateCheckBox(81, 260, 275, 15, "", false, false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(113, 84, 243, 140, "مرحبا بك في السيررفر", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) function Open() if guiGetVisible (GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) showChat(true) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) showChat(false) end end bindKey("F2", "down", Open) function Click () if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[2],true) guiSetVisible(GUIEditor.window[1],false) showCursor(true) end end addEventHandler("onClientGUIClick",root,Click) اشتغل شكرا
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