Thread: for allplayers
View Single Post
  #6  
Old 09-25-2011, 05:16 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
It basically means:

1. Create the GUI when the weapon is created.
2. Set the visibility of the GUI to false

Then when you want to display the GUI just call show() or make it visible.

I.e:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiWindowCtrl("Example") {
    
0;
    
width screenwidth;
    
height screenheight;
    
visible false;
  }
  
this.scheduleevent(5"DisplayGUI""");
}

function 
onDisplayGUI() {
  
Example.show(); // Same as: Example.visible = true;

**** this stupid security **** I couldn't even post on time out without it throwing an error.
__________________
Quote:
Reply With Quote