AjaxFTW Posted February 1, 2016 Share Posted February 1, 2016 Hey, guys any one know how to bind this function on "Enter" function disableAll() if (guiGetEnabled(loginWindow["mainWindow"]) == true) then guiSetEnabled(loginWindow["mainWindow"], false) end end addEventHandler("onClientGUIClick", loginButton["Main"], disableAll, false) need to be bound on enter please guys. Link to comment
AjaxFTW Posted February 1, 2016 Author Share Posted February 1, 2016 No one can help guys?!! Link to comment
Enargy, Posted February 1, 2016 Share Posted February 1, 2016 function disableAll() if (guiGetEnabled(loginWindow["mainWindow"]) == true) then guiSetEnabled(loginWindow["mainWindow"], false) end end bindKey("enter", "down",disableAll ) -- if not found then replace enter by 'enter_exit '. 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