Jump to content

triggerLatentClientEvent is bugged?


GTX

Recommended Posts

Hello. I'm trying to send a long string with triggerLatentClientEvent, but the other side doesn't recieve it. I realized that, when I use triggerLatentClientEvent once, I can't use triggerClientEvent any more. How did I test:

Resource1:

- Server

  
function co(a, b) 
    string = "very long string... I won't post it." 
    triggerLatentClientEvent(a, "startThis", 50000, false, root, string) 
end 
addCommandHandler("fny", co) 
  

Resource2:

- Client

  
function co2(string) 
    outputChatBox"asd" -- It did not output that. 
    -- Do the magic here. 
end 
addEvent("startThis", true) 
addEventHandler("startThis", root, co2) 
  

After I realized it did not work, I tried with triggerClientEvent and that did NOT work also. When I rebooted the VPS, triggerClientEvent worked. But when I used triggerLatentClientEvent again, both didn't work.

Weird...

I am using Linux, Debian 6.0 - 64bit. Is my VPS messed up, am I doing something wrong or is MTA/function bugged?

Thanks in advance.

Link to comment

The most probable reason is that you were still triggering the latent client event when you restarted the resource so it may have been fine that you couldnt do anything.

Despite other stuff, I actually use triggerClientEvent and I pass 1 kilobyte in each trigger so it doesnt get saturated...

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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