PHP Code:
/*
class functions:
createGUI() - public function that holds the GUI creation lines
toggle(status) - public function that shows/hides the GUI windows
*/
function onCreated() {
this.join("gui_design");
}
//#CLIENTSIDE
function onCreated() {
this.on = false;
createGUI();
toggle(this.on);
}
function onWeaponFired() {
this.on = !this.on;
player.chat = (this.on) ? "On":"Off";
toggle(this.on);
}
PHP Code:
//#CLIENTSIDE
public function toggle(status) {
if(status) {
Menu.show();
Stats.show();
}else{
Menu.hide();
Stats.hide();
}
}
public function createGUI() {
//GUI Lines Here
}
Though we're missing some details, what is Menu and Stats?