PHP Code:
function onKeyPressed(code, key) {
if (key == "q") {
this.on = !this.on;
if (this.on) {
new GuiShowImgCtrl("GUI_Inventory") {
position = {
300, 100
};
extent = {
690, 560
};
image = "c_inventorytest6-13-2013.png";
}
} else {
player.chat = "Menu off!";
}
}
}
I'm also placing the code here once again for any helpful input. thanks to those who try to help. other then that, as the title says i'm mainly trying to close and open this GUI. but i don't know any way of doing that. so if there is a way, what is it?