Jump to content

Download functions


knash94

Recommended Posts

Posted

I've been thinking about this for a while, and must be possible and would be a great tool to have for servers.

Basically, the idea is so that servers can have scripts to download files but without being required, so for example, it could be possible to make a user interface full of mods and the player can download the mod at his choice without having a massive download size when you join the server.

Suggested functions:

downloadFile (location, locationToDownload)

getDownloadProgress (download)

Events:

onDownloadComplete

onDownloadStart

onDownloadFail

If this suggestions has been created before, sorry to the author.

Any feedback and criticism would be great :D

  • MTA Team
Posted

triggerServerEvent

triggerClientEvent

possible already, using a more complex method.

SEE THE_GTA's RESEDIT

Posted

Native functions for downloading files can be useful, but only for optimizations, as triggering events and using file functions can do the job.

Posted

Would be useful to avoid players download custom models, textures, or sound, if they don't want to. Like an options system someone could script on their maps/gamemodes.

Posted

Thanks for the feedback, I'll try out these methods soon, though it would be much easier and efficient to have download functions without the need of calling server events.

Edit: Got it working now, might make a resource sometime for other people to use! :)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...