in the actual weapon (WeaponName) you can do something like:
PHP Code:
//#CLIENTSIDE
function onCreated() {
PHEALTH = this;
}
public function onDoGreeting() {
player.chat = "hi";
}
and than in your other script:
PHP Code:
//#CLIENTSIDE
function onCreated() {
PHEALTH.onDoGreeting();
}
ps: sorry that i couldnt get on your server again, internet is acting weird. will come back later