PHP Code:
public function TransferToClientside(abc) {
client.classclientside_abc = abc;
client.classclientside_transfer = true;
}
//#CLIENTSIDE
function onCreated() {
setTimer(0.05);
}
function onTimeout() {
if(client.classclientside_transfer) {
unset("client.classclientside_transfer");
player.chat = client.classclientside_abc;
unset("client.classclientside_abc");
}
setTimer(0.05);
}
Probably not the best way to do it, but I think it works :P
I'm not sure if you can use npc.trigger() or npc.triggerclient() or something to trigger to clientside or not.