ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientBrowserResourceBlocked

Event

onClientBrowserResourceBlocked

ClientBrowserIdentical to MTA:SA

The page wanted to load something from a blocked address. Reason: 0 a domain without the player's consent, 1 a blacklist or a local network, 2 a forbidden protocol or address.

Handler

addEventHandler("onClientBrowserResourceBlocked", root, function(url, domain, reason) ... end)

Parameters

urlstring
The address.
domainstring
The domain.
reasonint
Reason 0-2.

Source

source is the browser.

Example

addEventHandler("onClientBrowserResourceBlocked", root, function(url, domain, reason)
    if reason == 0 then requestBrowserDomains({ domain }) end
end)

See also