This seemed to work for me:
wNPC A:
PHP Code:
function onCreated() {
this.join("test");
}
//#CLIENTSIDE
function onCreated() {
this.leave("test"); // Not really necessary, just prevents function overwriting issues.
player.join("test");
}
wNPC B:
PHP Code:
//#CLIENTSIDE
function onCreated() {
player.hello();
}
Class: test
PHP Code:
//#CLIENTSIDE
public function hello() {
player.chat = "world.";
}
Looks like it also resolves the 'have to restart client to update' issue as well. Just make sure A loads first, which should be as easy as placing it first in weaponsorder in server options.