Sign in to follow this  
MisterQuestions

Make a downloadbar?

Recommended Posts

Hey all! i want to change the default and ugly downloadbar xD

i already maked the interface but now, how to get:

-Total file size

-Current downloaded

-When download has finished

And how to make when the download finish a exit animation...(i refer when the download finish, start exit anim)

Share this post


Link to post

Total file size: you can check all client file on resources running to get total download on frist join on server

Current downloaded: i don't understand this ! xD

When download has finished: use event 'onClientResourceStart' its trigger when resource download finished and started on client

Share this post


Link to post
fileGetSize 

This atleast, currently downloaded is impossible on the moment if I remember that correctly. I don't know but maybe while downloading the file gets placed in the client's map and then you can check how big that file is and then use some math, but I doubt that.

Share this post


Link to post

If I'm not wrong then downloadFile is using

triggerLatentClientEvent 

so you can check for progress using

getLatentEventStatus 

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.