OnClientBrowserResourceBlocked: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client_event}}
{{Client_event}}
{{Needs_Example}}
{{New feature/item|3.0150|1.5||
{{New feature/item|3.0150|1.5||
This event is executed when a resource (images, sounds etc.) has been blocked.
This event is executed when a resource (images, sounds etc.) has been blocked.
Line 9: Line 10:
string url, string domain, int reason
string url, string domain, int reason
</syntaxhighlight>
</syntaxhighlight>
*'''url''': The blocked URL
*'''url''': the blocked URL.
*'''domain''': The blocked domain (part of the URL)
*'''domain''': the blocked domain (part of the URL).
*'''reason''': The reason why the resource was blocked. Possibles values:
*'''reason''': the reason why the resource was blocked. Possibles values:
** 0: not allowed yet
** '''0''': not allowed yet
** 1: blacklisted
** '''1''': blacklisted
** 2: blocked protocol scheme
** '''2''': blocked protocol scheme


==Source==
==Source==
The [[Element/Browser|browser]] element
The [[Element/Browser|browser]] element.
 
==Example==
<syntaxhighlight lang="lua">
TODO
</syntaxhighlight>


==Example==
{{Needs_Example}}


[[pl:onClientBrowserResourceBlocked]]
[[pl:onClientBrowserResourceBlocked]]

Revision as of 22:23, 2 April 2018

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.

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

TODO

See Also