Quote:
Originally Posted by Pelikano
Sorry, didn't use the search function  :
PHP Code:
function onCreated() {
if (blablabla) {
// trigger the client
}
}
//#CLIENTSIDE
function onClientSideFunction() {
// Stuff
}
Something like this
|
In that example you could just have the onCreated() function on the clientside, no trigger needed (I'm assuming it's a DBNPC via putnpc?).
If the conditional statement 'if (blablabla)' can only be read serverside, I suggest storing the data in some other way where it could be read on the client.
Edit: what I'm trying to say is that there's most likely a way to do it without needing a server->client trigger and you should be more specific with your problem.