Whizz Posted July 31, 2024 Share Posted July 31, 2024 Hello, I am communicating with you through translit. Is there anything I can do to identify the status of Download Player? When it starts and when it finds ended. Link to comment
Moderators IIYAMA Posted July 31, 2024 Moderators Share Posted July 31, 2024 On 31/07/2024 at 14:52, Whizz said: When it starts and when it finds ended. Expand 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 1 Link to comment
Tails Posted August 1, 2024 Share Posted August 1, 2024 @IIYAMA I think OP was referring to the status of the download. @Whizz You can get the download status with the OnClientTransferBoxProgressChange event See here: https://wiki.multitheftauto.com/wiki/OnClientTransferBoxProgressChange 1 1 Link to comment
FernandoMTA Posted August 1, 2024 Share Posted August 1, 2024 (edited) 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 August 1, 2024 by FernandoMTA 1 1 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