yesyesok Posted April 9, 2015 Posted April 9, 2015 Hey, i created a gui panel with gui editor, But it shows the panel when i start the resource GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUI.window[1] = guiCreateWindow(222, 217, 378, 192, "testinggui", false) guiWindowSetSizable(GUI.window[1], false) guiSetProperty(GUI.window[1], "CaptionColour", "FFFA1818") GUIEditor.button[1] = guiCreateButton(57, 88, 109, 57, "guitest", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(224, 93, 126, 52, "test", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(87, 4, 206, 15, "", false, GUIEditor.window[1]) end ) I don't want the resource to start 1st.
Addlibs Posted April 9, 2015 Posted April 9, 2015 Add guiSetVisible(GUI.window[1], false) at the end of the onClientResourceStart event's function (right between line 14 and 15)
yesyesok Posted April 9, 2015 Author Posted April 9, 2015 Add guiSetVisible(GUI.window[1], false) at the end of the onClientResourceStart event's function (right between line 14 and 15) Thnaks
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