Jump to content

Timeout when loading files via LatentEvents


^.^

Recommended Posts

Posted

Hello Community,

I am working on a loading system for downloading files. Sometimes when I download music or textures via the system I get network trouble.

That's the line for triggering the event to the server.

triggerLatentServerEvent("startFileDownload", 900000, getLocalPlayer(), serverFile, clientFile, gameModeID) 

I am downloading files at a size of about 3-4 MB.

Thanks for your help

Posted

That resource will cause the same problem as he mentioned, I know this because it happened on my server, and so far, couldn't find a way to fix this, so maybe you should wait for the MTA downloadFile function.

Posted

That happens because you trigger an event many times with much data (not really sure about it). It may get solved if you make a delay between each trigger.

Posted

I thought the solution would be more difficult. At the end all files get downloaded within some seconds without a timeout.

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...