Jump to content

triggerClientEvent()


[Griffin]

Recommended Posts

Posted

triggetClientEvent() only works if its triggered by a command, or either another event. it cannot work if its triggered by another function. here is an example

function one()

triggerClientEvent(all the necessary arguments)

end

function two()

one()

end

addCommandHandler("one", two)

as you see. there is two functions. the triggerEvent in function one cannot work if the function one() is used in another function. It will still return true, but it will not actually trigger the event clientside. Im not sure about triggerServerEvent() if it also has the same details.

..Sorry if you cannot understand that

Posted

erm... you're wrong.

I have just written a script with exactly this in it (apart from the second function isn't called with a command handler) and it works fine...

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...