WelCome Posted October 27, 2018 Share Posted October 27, 2018 (edited) Hello i have a problem with 'CallRemote', i want to get text on other server but my code doesn't work function finishedCallback( responseData, errno ) responseData = tostring(responseData) if responseData == "ERROR" then outputDebugString( "callRemote: ERROR #" .. errno ) elseif responseData ~= "hello sailor" then outputDebugString( "callRemote: Unexpected reply: " .. responseData ) end end callRemote ( "mtasa://XXX.XXX.XX.XXX:XXXXX",getResourceFromName('runcode'),'httpRun',finishedCallback,"outputChatBox('Text',root)" ) DB3: https://imgur.com/a/TGjiojl Edited October 27, 2018 by WelCome Link to comment
SaNoR Posted October 27, 2018 Share Posted October 27, 2018 (edited) https://wiki.multitheftauto.com/wiki/Template:Error_codes_for_callRemote_and_fetchRemote Try without "mtasa://" callRemote ( "XXX.XXX.XX.XXX:XXXXX",getResourceFromName('runcode'),'httpRun',finishedCallback,"outputChatBox('Text',root)" ) Edited October 27, 2018 by SaNoR Link to comment
Moderators IIYAMA Posted October 27, 2018 Moderators Share Posted October 27, 2018 You can't just callRemote on to the server ip and expect it to work. Here are the steps for you to take in order to serve web content: https://wiki.multitheftauto.com/wiki/Resource_Web_Access 1 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