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") {
x = y = 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.