Just make a button for it:
NPC Code:
function onCreated() {
new GuiButtonCtrl("OpenRC") {
profile = "GuiButtonProfile";
x = 10;
y = screenheight - 45;
width = 80;
height = 35;
text = "RC";
catchevent(name,"onAction","on" @ name);
}
}
function onOpenRC() {
RemoteControl_Window.visible = RemoteControl_Window.visible == 0 ? 1 : 0;
}
Excuse me if there's something wrong or missing here. I'm having RC and NPC Server problems. Basically RC tells everyone who tries to log on that they need to register their account, and the NPC Server doesn't want to start. yay.
Oh and one question. Should "catchevent" be outside the control brackets?