Is there a way to know when a client has finished downloading the files?

Started by ., Feb 25, 2017, 02:37 PM

Previous topic - Next topic

.

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.
.

vito


.

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.
.