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
==Example==
[lua]
<syntaxhighlight lang="lua">addEventHandler("onClientBrowserLoadingFailed", root,
<syntaxhighlight lang="lua">addEventHandler("onClientBrowserLoadingFailed", root,
function(url, errorCode, errorDescription)
function(url, errorCode, errorDescription)
outputChatBox("This webpage is not available" .. url .. "Unknown" .. errorCode .. "Unknown" .. errorDescription)
outputChatBox("This webpage is not available" .. url .. "Unknown" .. errorCode .. "Unknown" .. errorDescription)
end
end
)</syntaxhighlight>
)
 
==Example==
<syntaxhighlight lang="lua">
TODO
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{CEF_events}}
{{CEF_events}}

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

todo

Example

[lua]

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

See Also