OnClientBrowserResourceBlocked: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...")
 
mNo edit summary
Line 21: Line 21:
==Example==  
==Example==  
{{Needs_Example}}
{{Needs_Example}}
[[pl:onClientBrowserResourceBlocked]]


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

Revision as of 19:06, 21 July 2016

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