xXMADEXx Posted May 4, 2013 Share Posted May 4, 2013 Hello guys, i just had a basic idea for the MTA community site. I think that if you are the maker of a resource, you can get the direct file path on the MTA community website, so that you can use a script to get the resource.... I just had this idea, to make stuff easier for scripts to make an automatic update script or something, so that your resource and directly download it... Thanks for reading. Here is what i mean: Link to comment
Woovie Posted May 6, 2013 Share Posted May 6, 2013 The current community is finished. It's also awful and isn't going to be worked on any time soon. Link to comment
xXMADEXx Posted May 6, 2013 Author Share Posted May 6, 2013 The current community is finished. It's also awful and isn't going to be worked on any time soon. Darn, but is there any way i can get a the direct link to the uploaded file? Link to comment
Woovie Posted May 7, 2013 Share Posted May 7, 2013 Yes, just go to the download page, where it says 'click here if it doesn't start' or whatever it say, right click that, copy link address. Link to comment
darkdreamingdan Posted May 7, 2013 Share Posted May 7, 2013 You could probably write a module to achieve this Link to comment
xXMADEXx Posted May 7, 2013 Author Share Posted May 7, 2013 (edited) You could probably write a module to achieve this By that, do you just mean edit it, and give to MTA team? Because, i do know a little PHP/HTML Yes, just go to the download page, where it says 'click here if it doesn't start' or whatever it say, right click that, copy link address. Cant do that, because it will take me to a blank page Edited May 7, 2013 by Guest Link to comment
qaisjp Posted May 7, 2013 Share Posted May 7, 2013 Aibo should send that sexc mta community to a dev to create. oh fuck i wasn't supposed to tell people about it. guy who posted above me, when downloading in chrome go to the downloads window (menu -> downloads) and you can see the direct url. you can copy it and figure out how to use it. create a module to unzip files and either handle the downloading in the module or using callRemote. i recommend you to save time by handling it within the module and just creating one function in the module for lua calling called updateResource("resourcename", community_resource_id) which'll update and return true or fail and return false. Link to comment
xXMADEXx Posted May 7, 2013 Author Share Posted May 7, 2013 Aibo should send that sexc mta community to a dev to create. oh i wasn't supposed to tell people about it.guy who posted above me, when downloading in chrome go to the downloads window (menu -> downloads) and you can see the direct url. you can copy it and figure out how to use it. create a module to unzip files and either handle the downloading in the module or using callRemote. i recommend you to save time by handling it within the module and just creating one function in the module for lua calling called updateResource("resourcename", community_resource_id) which'll update and return true or fail and return false. I would make a module, but i have no clue on how to do that I tried the chrome thing, but it only gives blank page... I would just use my own website, but the web hoster's are stubborn, and won't allow MTA to connect to it Link to comment
qaisjp Posted May 8, 2013 Share Posted May 8, 2013 I just checked.. and you're right. You could try a github repository that automatically uploads commits into the community, therefore getting the code from github will be easier Link to comment
Recommended Posts