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 !