Italo Posted October 22, 2013 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)
Castillo Posted October 22, 2013 Posted October 22, 2013 I don't understand what is the problem. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Italo Posted October 22, 2013 Author 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.
Castillo Posted October 22, 2013 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted October 22, 2013 Posted October 22, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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