RaiDen# Posted September 24, 2013 Share Posted September 24, 2013 Hey there , I want to know more about this script and how this workin (it xXMADEXx) I want to thank him for this great job cauz I was begging in one like this , I need a little help about how that is working sec = {{{{{{},{},{},{}}}}}} function getRoSScripts( ) callRemote ( "revolution-scripts.com/pages/others/MTA/resources.php", function ( data ) returnValue = data; end, 'getScripts' ) return returnValue or false end addEvent ( "ROSDownlaoder:onClientRequestScripts", true ) addEventHandler ( "ROSDownlaoder:onClientRequestScripts", root, function ( ) local scripts = getRoSScripts ( ) triggerClientEvent ( source, "ROSDownloader:onClientGetScripts", source, scripts ) end ) function downloadScript( script ) theScript = script fetchRemote ( 'revolution-scripts.com/pages/scripts/'..script..'/'..script..'.zip', function ( data ) local file = fileCreate ( "downloads/"..theScript..".zip" ) fileWrite ( file, data, 0 ) fileClose ( file ) outputChatBox ( "The script "..theScript.." has successfully been downloaded! Directory: :"..getResourceName ( getThisResource ( ) ).."/downloads/"..theScript..".zip!", root, 0, 255, 0 ) end ) end addEvent ( "ROSDownloader:onClientDownloadScript", true ) addEventHandler ( "ROSDownloader:onClientDownloadScript", root, downloadScript ) Best regrads to Ros ! Link to comment
Desaster Posted September 24, 2013 Share Posted September 24, 2013 I also wanna know how make that exported function Link to comment
Castillo Posted September 24, 2013 Share Posted September 24, 2013 I don't understand what do you want. Link to comment
K4stic Posted September 25, 2013 Share Posted September 25, 2013 ask that on RoS Forum please Link to comment
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