OnClientBrowserResourceBlocked

From Multi Theft Auto: Wiki
Revision as of 13:06, 17 June 2015 by Jusonex (talk | contribs) (Created page with "__NOTOC__ {{Client_event}} {{New feature/item|3.0150|1.5|| This event is executed when a resource (images, sounds etc.) has been blocked. }} ==Parameters== <syntaxhighlight lang="lua"> str...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is executed when a resource (images, sounds etc.) has been blocked.

Parameters

string url, string domain, int reason
  • url: The blocked URL
  • domain: The blocked domain (part of the URL)
  • reason: The reason why the resource was blocked. Possibles values:
    • 0: not allowed yet
    • 1: blacklisted
    • 2: blocked protocol scheme

Source

The browser element

Example

Accessories-text-editor.png Script Example Missing Event OnClientBrowserResourceBlocked needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also