RequestBrowserDomains

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function opens a request window in order to accept the requested remote URLs.

Syntax

bool requestBrowserDomains ( table pages )

OOP Syntax Help! I don't understand this!

Method: browser.requestDomains(...)
Counterpart: requestBrowserDomains


Required arguments

  • pages: A table containing all domains (without http://)

Returns

Returns true, if the string was successfully read, false otherwise.

Example

requestBrowserDomains({ "mtasa.com" }) ---- request browser domain
showCursor(true) --- show cursor
addEventHandler("onClientBrowserRequestsChange", root,
	function()
		if mtaSite == "mtasa.com" then
			browser = createBrowser(1280, 720, false, false) --------- create browser
			loadBrowserURL(browser, "http://mtasa.com/")  -------- load browser url
		end
	end
)

See also