Jump to content

[HELP] Donwload Started / Ended


Recommended Posts

  • Moderators
2 hours ago, Whizz said:

When it starts and when it finds ended.

Downloads are not always done in a straight line. They are bound to resources. Even if the client finished downloading, a new resource can be started by the server admin.

 

Clientside:

Downloads are often busy when the transferbox is visible.

https://wiki.multitheftauto.com/wiki/IsTransferBoxVisible

According to the wiki, it is possible to forcefully show the transferbox at all times. But I doubt anybody would be willing to create a worse experience for themselves.

https://wiki.multitheftauto.com/wiki/IsTransferBoxAlwaysVisible

 

Serverside:

Downloads often start at https://wiki.multitheftauto.com/wiki/OnPlayerJoin

And end for each resource at:

https://wiki.multitheftauto.com/wiki/OnPlayerResourceStart

 

 

 

  • Thanks 1
Link to comment

Yes, you can only track the client's resources download progress using that event ^
Downloading resource(s) can happen immediately when the player joins the server (downloaded resources are started progressively as their downloads finish) or during the gameplay if an admin/dev restarts a resource or starts a new resource that needs to be downloaded.

To make a Loading/Downloading panel that appears when the player joins you just need to wait & check if the player is downloading, track the progress, and when done, initiate the next step (can be a login panel). Tracking download progress later during gameplay doesn't really matter.

Edited by FernandoMTA
  • Like 1
  • Thanks 1
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...