Jump to content

bindKey <_<


#Paper

Recommended Posts

why don't show the window?

bindKey ("u", "down", setvis) 
  
function setvis () 
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then               
                guiSetVisible ( GUIEditor_Window[1], false ) 
                showCursor ( false ) 
        else               
                guiSetVisible ( GUIEditor_Window[1], true ) 
                showCursor ( true ) 
        end 
end 

Link to comment

Where did you placed "bindKey ("u", "down", setvis)"? If you place it just global, I suppose that was the problem. I Suggest you place that in onClientResourceStart.

  
addEventHandler ( "onClientResourceStart", getThisResource ( ), 
    function ( ) 
        bindKey ("u", "down", setvis) 
    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...