View Single Post
  #2  
Old 06-15-2013, 03:36 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
PHP Code:
//#CLIENTSIDE
//Try creating the GUI first before you actually try modifying/adding to it. 
function onCreated() { 
  if (
isObject("GUI_Inventory")) { 
    
GUI_Inventory.destroy(); 
  } 
  new 
GuiWindowCtrl("GUI_Inventory") { 
    
width 350
    
height 300

    
GraalControl.width - (width 2); 
    
GraalControl.height - (height 2); 

    
hide
  } 


function 
onKeyPressed(codekey) { 
  if (
key == "q") { 
    
this.on = !this.on

    if (
this.on) { 
      
GUI_Inventory.visible true
      
player.chat "I opened my inventory!"
    } else { 
      
GUI_Inventory.visible false
      
player.chat "I closed my inventory!"
    } 

  } 

Good luck buddy, I didn't test it!
__________________
Reply With Quote