NPC Code:
//#CLIENTSIDE
function onWeaponFired(){
new GuiWindowCtrl(WindowTest){
extent = {140,62};
position = {50,50};
text = "Test Window";
new GuiButtonCtrl(Okay){
position = {6,24};
extent = {128,32};
text = "Okay!";
}
}
}
function WindowTest.onAction(){
WindowTest.destroy;
}
What's wrong with it?