View Single Post
  #3  
Old 08-28-2016, 05:25 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Alpho View Post
Very cool!

I am working on a new server project with a custom account login system. Would I potentially be able to use this to download majority of the server's assets to the client upon a successful login? Does the filetype matter? Is fileupdate the best method to download files onto a client for pre-loading?

Thanks!
This script was made specifically for default Graal mainfiles, but there's no reason you couldn't do something similar for a server's custom files if you wanted it to work dynamically. Usually on GtA I have pre-loaders setup within levels as the player progresses through the game, which just download the images/ganis/sounds etc for the content they are about to encounter.

fileupdate() perhaps isn't that efficient for mass downloading as it probably sends a request for every single file, but I'm not currently aware of any methods for mass file pre-loading except GUPD. The filetype does not matter so long as it is downloadable by the client and configured within folder config.
Reply With Quote