Jump to content

Problem bindkey


Italo

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...