Jump to content

Custom downloading


Gravestone

Recommended Posts

I want to create a GUI window displaying all weapon/vehicle mods. I want to know when the client click to download them, how can I download the file? downloadFile doesn't work until I add the mods to meta and if I do so, the mods download when the resource start. I hope you people get what I am trying to do.

Link to comment

Didn't see the download attribute thing. Anyways that's working now. Now I want to see if the client has downloaded the files. Used onClientDownloadComplete to replace models when he's in game. Now when the client re joins, the models do not replace. Tried fileExists but it checks if the file exists in the server. How do I fix this?

Link to comment
That's the problem, it returns if it exists on the server.

You are using fileExists to skip downloadFile, but fileExists does not check the file content.

downloadFile automatcially checks the existing file first, and will immediately trigger onClientFileDownloadComplete if download is not required.

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