Jump to content

[HELP] fetchRemote


NETCHK

Recommended Posts

7 minutes ago, NeXuS™ said:

I mean, the best examples are on the MTA:SA wiki page, but if you still feel like it'd help you a lot if we'd give you an example, just reply.

need other example only client-side, please

I have Problem 
 

fetchRemote ( "http://25.21.228.242/all/car.dff", txd, "", false, getLocalPlayer(), 400 )
-- not is doing download in Client-Side !!

 

Link to comment
10 minutes ago, NeXuS™ said:

requestBrowserDomains({"http://25.21.228.242/"}

 

this ?

requestBrowserDomains({"http://25.21.228.242/"})

function download()
	fetchRemote ( "http://25.21.228.242/all/car.txd", txd, "", false, getLocalPlayer() )
end  

 

please !!!

Link to comment
requestBrowserDomains({"http://25.21.228.242/"})

function startDownload()
	fetchRemote("http://25.21.228.242/all/car.txd", callBack, "", false)
end
startDownload()

function callBack(rData, errno)
	if errno == 0 then
		-- Do something
	end
end

Try this.

  • Like 1
  • Thanks 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...