Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: . on Feb 25, 2017, 02:37 PM

Title: Is there a way to know when a client has finished downloading the files?
Post by: . on Feb 25, 2017, 02:37 PM
Via the client or the server. I'm curious if there's a way to detect if a player has finished downloading the files from the server and they can be used.

I could've try a few things by myself silently but it wouldn't hurd to have these topics available for anyone else in the future.

EDIT: I think a Script::ScriptLoad() should theoretically do it but knowing VC:MP I'm pretty sure it's gonna mess that up. Gotta try that.

EDIT: Yep. That seems to do it.
Title: Re: Is there a way to know when a client has finished downloading the files?
Post by: vito on Feb 25, 2017, 03:27 PM
First calling onPlayerRequestClass() will be this spot.
Title: Re: Is there a way to know when a client has finished downloading the files?
Post by: . on Feb 25, 2017, 03:45 PM
Quote from: vito on Feb 25, 2017, 03:27 PMFirst calling onPlayerRequestClass() will be this spot.

Nope. Doesn't get called immediately after downloads are finished.

EDIT: Never mind. I was loading the wrong module. This also works.