I'm using a GUI that's opening when 'w' is pressed,
I want it to close when 'w' is pressed again, so players don't
have to move their mouse up to the little red x button.
Here's what I used:
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code, key){
if (key == "w") {
onOpenStats();
}
}
function onOpenStats() {
new GuiWindowCtrl("Stats_Window1") {
and blabla all the gui scripts...
Please help, thanks!
