Jump to content

I need help with this.


Recommended Posts

hey i want to do that when I press F1 for first time it showChat(false) and when I press again it's true when I press again false... do u understand?

PS: I can't do it with GuiGetVisible because it isn't a gui =/

local isChatVisible = true 
function chat ( key, keyState ) 
    if isChatVisible then  
        showChat ( false ) 
        isChatVisible = false 
    else 
        showChat ( true ) 
        isChatVisible = true 
    end 
end 
bindKey ( "f1", "down", chat ) 

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...