Topperx Posted May 28, 2018 Share Posted May 28, 2018 After some updates on the FetchRemote function, I'm having a lot of trouble downloading some files directly from a "Domain" Example: My server is on a Host, and the Files on another Host, and it looks like something is blocking and FetchRemote Function. can someone help me ? Link to comment
Scripting Moderators thisdp Posted May 28, 2018 Scripting Moderators Share Posted May 28, 2018 requestBrowserDomains https://wiki.multitheftauto.com/wiki/RequestBrowserDomains 1 Link to comment
Topperx Posted May 30, 2018 Author Share Posted May 30, 2018 On 28/05/2018 at 19:12, thisdp said: requestBrowserDomains https://wiki.multitheftauto.com/wiki/RequestBrowserDomains I already used this function.... Same thing... ++ Rep Link to comment
Topperx Posted June 1, 2018 Author Share Posted June 1, 2018 requestBrowserDomains({"http://servertestdownload.unaux.com/"}) function startDownload( ) fetchRemote ( "http://servertestdownload.unaux.com/download/data/database/login/ScreenLoading1.png", myCallback, "", false, getLocalPlayer() ) end function myCallback( responseData, error, client ) if error == 0 then outputChatBox("SUCCS "..tostring(error)) else outputChatBox("ERRO "..tostring(error)) end end startDownload( ) debug " ERRO 1006 " Link to comment
AJXB Posted June 1, 2018 Share Posted June 1, 2018 in your "myCallback" function, try to output "responseData ", what is it? I'm sorry, I might not be much of a help Link to comment
Topperx Posted June 1, 2018 Author Share Posted June 1, 2018 is not downloading > [Output] : ERRO 1006 30 minutes ago, gSub said: in your "myCallback" function, try to output "responseData ", what is it? I'm sorry, I might not be much of a help On 28/05/2018 at 19:12, thisdp said: requestBrowserDomains https://wiki.multitheftauto.com/wiki/RequestBrowserDomains helpp is not downloading [Output] : ERRO 1006 Link to comment
AJXB Posted June 1, 2018 Share Posted June 1, 2018 2 minutes ago, Topperx said: is not downloading > [Output] : ERRO 1006 helpp is not downloading [Output] : ERRO 1006 outputConsole(responseData) What does this return in your console? Link to comment
Topperx Posted June 1, 2018 Author Share Posted June 1, 2018 1 minute ago, gSub said: O que isso retorna no seu console? responseData = image ( "http://servertestdownload.unaux.com/download/data/database/login/ScreenLoading1.png" ) the problem is not in the function but in the connection to the site "http://servertestdownload.unaux.com/download/data/database/login/ScreenLoading1.png" Link to comment
AJXB Posted June 1, 2018 Share Posted June 1, 2018 35 minutes ago, Topperx said: responseData = image ( "http://servertestdownload.unaux.com/download/data/database/login/ScreenLoading1.png" ) the problem is not in the function but in the connection to the site "http://servertestdownload.unaux.com/download/data/database/login/ScreenLoading1.png" Try to fetchRemote another type of file, maybe a .lua, what does it return? 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