View Single Post
  #5  
Old 06-15-2009, 07:36 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by Pelikano View Post
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.
Reply With Quote