It would be nice if you could do things like this, without generating a "function not found" error.
PHP Code:
//#CLIENTSIDE
function onCreated()
{
new GuiWindowCtrl("Debug") {
this.testFunc = function () {
echo("Sup?");
};
this.testFunc();
}
}
NPC Code:
GraalScript: Function Debug.testFunc not found in script of Weapon Public/xXziroXx/Debug