View Single Post
  #1  
Old 06-15-2013, 03:23 AM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
trying to close and open a GUI - help

PHP Code:
 function onKeyPressed(codekey) {
    if (
key == "q") {
      
this.on = !this.on;
      if (
this.on) {
        new 
GuiShowImgCtrl("GUI_Inventory") {
          
position = {
            
300100
          
};
          
extent = {
            
690560
          
};
          
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?
Reply With Quote