OnClientBrowserLoadingFailed: Difference between revisions

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


==Example==  
==Example==  
[lua]
 
<syntaxhighlight lang="lua">addEventHandler("onClientBrowserLoadingFailed", root,
<syntaxhighlight lang="lua">addEventHandler("onClientBrowserLoadingFailed", root,
function(url, errorCode, errorDescription)
function(url, errorCode, errorDescription)

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

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

See Also