GamerDeMTA Posted July 13, 2013 Share Posted July 13, 2013 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 =/ Link to comment
FatalTerror Posted July 13, 2013 Share Posted July 13, 2013 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
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