onClientBrowserLoadingFailed | Multi Theft Auto: Wiki Skip to content

onClientBrowserLoadingFailed

Client-side
Server-side
Shared

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

Parameters

string url, int errorCode, string errorDescription
  • url: the requested URL.
  • errorCode: see error codes below.
  • errorDescription: a short description.

Source

element: The browser element.

Code Examples

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