Fist Posted November 22, 2017 Share Posted November 22, 2017 does anyone know how i can get download progress of fetchRemote and display it on screen, more like an mta's built in when you download files before joining the server? Link to comment
Moderators IIYAMA Posted November 22, 2017 Moderators Share Posted November 22, 2017 (edited) I don't think there is a download progress indication for fetchremote. But you can use the trigger latent functions to show the client download progress once the server has downloaded the files. Edited November 22, 2017 by IIYAMA Link to comment
Fist Posted November 22, 2017 Author Share Posted November 22, 2017 4 minutes ago, IIYAMA said: I don't think there is a download progress indication for fetchremote. But you can use the trigger latent functions to show the client download progress once the server has downloaded the files. So you're telling me to, download first files in server and then send them to client through triggerLatentClientEvent? Then what's point of me doing that if i can just keep files on server and then just send them through latent? I'm just new into this stuff idk what's better but i've heard i can create custom downloader through fetchRemote. Just wanted to do that. If you know any better solutions i'd be glad to hear it. Link to comment
Moderators IIYAMA Posted November 22, 2017 Moderators Share Posted November 22, 2017 (edited) You can use fetchRemote to make a 'download' progress, but more in this way: fileSize / totalFileSize * 100 = additional progress.(% after a file has been downloaded) Which is more or less a file transfer progress instead of a download progress. With a transition you can make it more smooth. But it will not tell the client that a part of a file has been downloaded. See also the function downloadFile which also validate the file if it has been corrected downloaded and not edited by the client. Edited November 22, 2017 by IIYAMA Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now