Italo Posted October 22, 2013 Share Posted October 22, 2013 I created this script when the desired image appears so that when the player enters the server the image looks like it connects and I just wanted it to appear when the button was pressed configured. Script Client GUIEditor = { staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage = guiCreateStaticImage(95, 45, 827, 660, "images/design.png", false) end ) function showPanel () local visible = guiGetVisible(GUIEditor.staticimage) guiSetVisible(GUIEditor.staticimage,not visible) end bindKey("F4","down",showPanel) Link to comment
Castillo Posted October 22, 2013 Share Posted October 22, 2013 I don't understand what is the problem. Link to comment
Italo Posted October 22, 2013 Author Share Posted October 22, 2013 I don't understand what is the problem. Whenever a player connects to the server that panel appears before the login screen. I wanted it to appear only when the F4 was Pressed. Link to comment
Castillo Posted October 22, 2013 Share Posted October 22, 2013 Simply hide it after creating it. addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage = guiCreateStaticImage(95, 45, 827, 660, "images/design.png", false) guiSetVisible ( GUIEditor.staticimage, false ) end ) 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