Turbesz Posted July 22, 2016 Share Posted July 22, 2016 (edited) i created a button, button is working, but doesn't open the window code: local GUIEditor = { button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(485, 0, 499, 23, "Információs panel megnyitásához kattints ide!", false) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") end ) local GUIEditorr = { window = {} buttonn = {} } addEventHandler("onClientGUIClick", GUIEditor.button[1], root GUIEditor.window[1] = guiCreateWindow(292, 127, 868, 583, "[FullFunPlay] INFORMÁCIÓS PANEL | TELJESEN TURBESZ ÁLTAL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF35FE9D") GUIEditor.memo[1] = guiCreateMemo(9, 28, 849, 485, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(9, 521, 425, 52, "ELFOGADOM A LEÍRTAKAT, ÉS EGYET ÉRTEK VELÜK", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF24FE00") GUIEditor.button[2] = guiCreateButton(443, 522, 415, 51, "NEM FOGADOM EL A LEÍRTAKAT, ÉS NEM ÉRTEK EGYET VELÜK", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000") ) Edited July 22, 2016 by Guest Link to comment
Ahmed Ly Posted July 22, 2016 Share Posted July 22, 2016 bb = guiCreateButton(485, 0, 499, 23, "Információs panel megnyitásához kattints ide!", false) guiSetProperty(bb, "NormalTextColour", "FFFF0000") guiSetVisible(bb,true) local GUIEditor = { window = {}, button = {}, memo = {}, } GUIEditor.window[1] = guiCreateWindow(292, 127, 868, 583, "[FullFunPlay] INFORMÁCIÓS PANEL | TELJESEN TURBESZ ÁLTAL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF35FE9D") GUIEditor.memo[1] = guiCreateMemo(9, 28, 849, 485, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(9, 521, 425, 52, "ELFOGADOM A LEÍRTAKAT, ÉS EGYET ÉRTEK VELÜK", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF24FE00") GUIEditor.button[2] = guiCreateButton(443, 522, 415, 51, "NEM FOGADOM EL A LEÍRTAKAT, ÉS NEM ÉRTEK EGYET VELÜK", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000") guiSetVisible(GUIEditor.window[1],false) addEventHandler("onClientGUIClick",root, function () if source == bb then guiSetVisible(GUIEditor.window[1],true) end end ) Link to comment
Turbesz Posted July 22, 2016 Author Share Posted July 22, 2016 bb = guiCreateButton(485, 0, 499, 23, "Információs panel megnyitásához kattints ide!", false) guiSetProperty(bb, "NormalTextColour", "FFFF0000") guiSetVisible(bb,true) local GUIEditor = { window = {}, button = {}, memo = {}, } GUIEditor.window[1] = guiCreateWindow(292, 127, 868, 583, "[FullFunPlay] INFORMÁCIÓS PANEL | TELJESEN TURBESZ ÁLTAL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF35FE9D") GUIEditor.memo[1] = guiCreateMemo(9, 28, 849, 485, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(9, 521, 425, 52, "ELFOGADOM A LEÍRTAKAT, ÉS EGYET ÉRTEK VELÜK", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF24FE00") GUIEditor.button[2] = guiCreateButton(443, 522, 415, 51, "NEM FOGADOM EL A LEÍRTAKAT, ÉS NEM ÉRTEK EGYET VELÜK", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000") guiSetVisible(GUIEditor.window[1],false) addEventHandler("onClientGUIClick",root, function () if source == bb then guiSetVisible(GUIEditor.window[1],true) end end ) many thanks 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