Jump to content

Remote event triggers


ryden

Recommended Posts

Posted

If you do server-side triggerClientEvent, the client won't queue the event call until the script is completely downloaded and started (onClientResourceStart), making that sometimes in the debug console it alerts that the server tried to call an unexistant event.

Posted
If you do server-side triggerClientEvent, the client won't queue the event call until the script is completely downloaded and started (onClientResourceStart), making that sometimes in the debug console it alerts that the server tried to call an unexistant event.

I can't see a bug in there. It's just logic that the event doesn't exist as long as the client script hasn't started :roll:

Posted
If you do server-side triggerClientEvent, the client won't queue the event call until the script is completely downloaded and started (onClientResourceStart), making that sometimes in the debug console it alerts that the server tried to call an unexistant event.

I can't see a bug in there. It's just logic that the event doesn't exist as long as the client script hasn't started :roll:

That's exactly the bug, that the event should be queued.

Posted
That's exactly the bug, that the event should be queued.

Um?! the event can't exist if the client hasn't downloaded the files completle because the .lua client script file where the event is added simply isn't complete on his pc.

Posted
That's exactly the bug, that the event should be queued.

Um?! the event can't exist if the client hasn't downloaded the files completle because the .lua client script file where the event is added simply isn't complete on his pc.

And that's why it should be queued until it's completely downloaded. To wait for the script to add the event handler so it can act in consequence.

Posted

If client'd be queueing every unexistant event it could work out not well i suppse. You can request the data from client when it's script has started, instead of sending it right on resource start.

Posted
If client'd be queueing every unexistant event it could work out not well i suppse. You can request the data from client when it's script has started, instead of sending it right on resource start.

It's not queueing unexistant events. It's just waiting for the resource to be downloaded and started. After that, nothing is queued.

  • 2 weeks later...
Posted

This isnt going to happen. First argument is that the script doesnt exist so it doesnt make sense.

Second is that an event doesnt necessarily belong to a specific resource. You're saying that all event triggers should be put on hold until the client has downloaded all scripts. This will surely break other scripts that require events.

  • Recently Browsing   0 members

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