I've gotten so far scripting this GUI window by reading the wiki and examining other scripts and the functions they used. But o I'm sort of stuck any and all help would be appreciated as to how I would go about doing this right.
PHP Code:
//By Stan.
//CLIENTSIDE
function onCreated()
{
this.on = false;
addGUIControls();
}
function turnon()
{
this.on = true;
function onKeyPressed(code,key) {
if (keycode==0x75) {//F9
if (this.on)
turnoff();
else
turnon();
}
}