Ben_Sherman Posted October 13, 2013 Posted October 13, 2013 Hi there, I've noticed that other servers you can play while downloading files, how is that possible. I mean I know that the downloadFile function is not released yet until v1.4 which I'm waiting for but there must be some other way since there are other servers that you cna play on while downloading the files. Any ideas?
Ben_Sherman Posted October 13, 2013 Author Posted October 13, 2013 Yeah that was really helpful, maybe a little more details would help. Thanks though!
myonlake Posted October 13, 2013 Posted October 13, 2013 There isn't much to say because it's practically the same thing as copying and pasting. https://wiki.multitheftauto.com/wiki/FileCreate
Ben_Sherman Posted October 14, 2013 Author Posted October 14, 2013 Yeah now this is a little wrong, I'm asking about downloading file during gameplay and not create or open a text file or some kinda text file. Example I have mods on the server and players get to download everything before they can play. I noticed that there are some servers out there that you can play on during the download progress. Kinda like you starting a resource when your in game and then you download the files while you play. Thanks though.
xXMADEXx Posted October 14, 2013 Posted October 14, 2013 They use the fetchRemote function on the client side. Also, the downloadFile function can be found on the MTA community. (here)
Ben_Sherman Posted October 14, 2013 Author Posted October 14, 2013 Thank you very much, Don't get it how I could miss that, well to be honest google sucks when you look for script help within mta.
myonlake Posted October 14, 2013 Posted October 14, 2013 They use fileCreate to create the code. Believe it already They might or might not use fetchRemote, really depends on the way how they revision their code. There is no way you can create a file any other way except downloadFile.
arezu Posted October 14, 2013 Posted October 14, 2013 There are currently 3 ways to do it triggerClientEvent/triggerLatentClientEvent -- Read file server sided and send the content fetchRemote downloadFile -- Only mta 1.4 though
Ben_Sherman Posted October 16, 2013 Author Posted October 16, 2013 Yeah the problem is not the files, I'm working on a mod handler to reduce download size, you can select what mods you want to have and no, after that it downloads the file for you. But thank you all for all help!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now