OnClientBrowserLoadingFailed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:


==Source==
==Source==
todo
The [[Element/Browser|browser]] element


==Example==  
==Example==  

Revision as of 16:27, 26 May 2015

The event is triggered when the browser can not load the page.

Parameters

string url, int errorCode, string errorDescription
  • url:
  • errorCode:
  • errorDescription:

Source

The browser element

Example

[lua]

addEventHandler("onClientBrowserLoadingFailed", root,
	function(url, errorCode, errorDescription)
		outputChatBox("This webpage is not available" .. url .. "Unknown" .. errorCode .. "Unknown" .. errorDescription)
	end
)

See Also