<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lars-Marcel</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lars-Marcel"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Lars-Marcel"/>
	<updated>2026-04-29T19:48:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59206</id>
		<title>OnClientBrowserLoadingStart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59206"/>
		<updated>2018-09-19T20:30:07Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
The event is triggered when a [[Browser|webbrowser]] starts loading a page.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string URL, boolean isMain&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''URL:''' [[string]] containing the URL that will be loaded.&lt;br /&gt;
* {{New feature/item|3.0160|1.6|7888|'''isMainFrame:''' a [[boolean]] representing whether the entire page (main frame) was loaded or an ''&amp;lt;iframe&amp;gt;'' inside the page was loaded.&lt;br /&gt;
** '''true''': If the URL is loaded in the main frame.&lt;br /&gt;
** '''false''': If the URL is loaded in a ''&amp;lt;iframe&amp;gt;''.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Browser|webbrowser]] element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserLoadingStart&amp;quot;, theBrowser, function(url, isMainFrame)&lt;br /&gt;
  if (isMainFrame) then&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in the main frame...&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in a iframe...&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, function()&lt;br /&gt;
  loadBrowserURL(source, &amp;quot;https://www.w3schools.com/html/html_iframe.asp&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59205</id>
		<title>OnClientBrowserLoadingStart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59205"/>
		<updated>2018-09-19T20:28:09Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
The event is triggered when a [[Browser|webbrowser]] starts loading a page.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string URL, boolean isMain&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''URL:''' [[string]] containing the URL that will be loaded.&lt;br /&gt;
* {{New feature/item|3.0160|1.6|7888|'''isMainFrame:''' a [[boolean]] representing whether the entire page (main frame) was loaded or an ''&amp;lt;iframe&amp;gt;'' inside the page was loaded.&lt;br /&gt;
** '''true''': If the URL is loaded in the main frame.&lt;br /&gt;
** '''false''': If the URL is loaded in a ''&amp;lt;iframe&amp;gt;''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Browser|webbrowser]] element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserLoadingStart&amp;quot;, theBrowser, function(url, isMainFrame)&lt;br /&gt;
  if (isMainFrame) then&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in the main frame...&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in a iframe...&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, function()&lt;br /&gt;
  loadBrowserURL(source, &amp;quot;https://www.w3schools.com/html/html_iframe.asp&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserResourceBlocked&amp;diff=59204</id>
		<title>OnClientBrowserResourceBlocked</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserResourceBlocked&amp;diff=59204"/>
		<updated>2018-09-19T20:25:00Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client_event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
This event is executed when a resource (images, sounds etc.) has been blocked.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string url, string domain, int reason&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''url''': the blocked URL.&lt;br /&gt;
*'''domain''': the blocked domain (part of the URL).&lt;br /&gt;
*'''reason''': the reason why the resource was blocked. Possibles values:&lt;br /&gt;
** '''0''': not allowed yet&lt;br /&gt;
** '''1''': blacklisted&lt;br /&gt;
** '''2''': blocked protocol scheme&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Element/Browser|browser]] element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example asks the user to accept a blocked resource and reloads the browser if accepted.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, function()&lt;br /&gt;
  loadBrowserURL(source, &amp;quot;https://www.mta-sa.org/&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
local lastBrowser = nil&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserResourceBlocked&amp;quot;, theBrowser, function(url, domain, reason)&lt;br /&gt;
  if (reason == 0) then&lt;br /&gt;
    &lt;br /&gt;
    lastBrowser = source&lt;br /&gt;
    requestBrowserDomains({domain}, false, function(accepted, newDomains)&lt;br /&gt;
      if (accepted == true) then&lt;br /&gt;
        reloadBrowserPage(lastBrowser)&lt;br /&gt;
      end&lt;br /&gt;
      lastBrowser = nil&lt;br /&gt;
    end)&lt;br /&gt;
  &lt;br /&gt;
  end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[pl:onClientBrowserResourceBlocked]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59203</id>
		<title>OnClientBrowserLoadingStart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59203"/>
		<updated>2018-09-19T20:16:25Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
The event is triggered when a [[Browser|webbrowser]] starts loading a page.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string URL, boolean isMain&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''URL:''' [[string]] containing the URL that will be loaded.&lt;br /&gt;
*'''isMain:''' [[boolean]]&lt;br /&gt;
** '''true''': If the URL is loaded in the main frame.&lt;br /&gt;
** '''false''': If the URL is loaded in a sub-frame, e.g. in an iFrame.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Browser|webbrowser]] element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserLoadingStart&amp;quot;, theBrowser, function(url, isMain)&lt;br /&gt;
  if (isMain) then&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in the main frame...&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in a sub main frame...&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, function()&lt;br /&gt;
  loadBrowserURL(source, &amp;quot;https://www.w3schools.com/html/html_iframe.asp&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59202</id>
		<title>OnClientBrowserLoadingStart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserLoadingStart&amp;diff=59202"/>
		<updated>2018-09-19T20:13:44Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: Created page with &amp;quot;__NOTOC__ {{Client event}} {{New feature/item|3.0150|1.5|| The event is triggered when a webbrowser starts loading a page. }}  ==Parameters==  &amp;lt;syntaxhighlight lan...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
The event is triggered when a [[Browser|webbrowser]] starts loading a page.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string URL, boolean isMain&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''URL:''' [[string]] containing the URL that will be loaded.&lt;br /&gt;
*'''isMain:''' [[boolean]] true if the URL is loaded in the main frame. false if the URL is loaded in a sub-frame, e.g. in an iFrame.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Browser|webbrowser]] element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserLoadingStart&amp;quot;, theBrowser, function(url, isMain)&lt;br /&gt;
  if (isMain) then&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in the main frame...&amp;quot;)&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox(&amp;quot;Loading &amp;quot;..url..&amp;quot; in a sub main frame...&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, function()&lt;br /&gt;
  loadBrowserURL(source, &amp;quot;https://www.w3schools.com/html/html_iframe.asp&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserTooltip&amp;diff=59201</id>
		<title>OnClientBrowserTooltip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserTooltip&amp;diff=59201"/>
		<updated>2018-09-19T19:55:20Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
The event is triggered when the user hovers a tooltip.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string text&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' [[string]] containing the tooltip text. Empty string if user is not longer hovering.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Browser|webbrowser]] element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
If the user hovers the Google search input field 'Tooltip-Text: Search' will be printed in the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, function()&lt;br /&gt;
  loadBrowserURL(source, &amp;quot;https://www.google.com/?ncr&amp;amp;hl=en&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserTooltip&amp;quot;, root, function(text)&lt;br /&gt;
  if (text ~= &amp;quot;&amp;quot;) then&lt;br /&gt;
    outputChatBox(&amp;quot;Tooltip-Text: &amp;quot;..text)&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox(&amp;quot;You are not longer hovering a tooltip&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserTooltip&amp;diff=59200</id>
		<title>OnClientBrowserTooltip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserTooltip&amp;diff=59200"/>
		<updated>2018-09-19T19:55:03Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: Created page with &amp;quot;__NOTOC__ {{Client event}} {{New feature/item|3.0150|1.5|| The event is triggered when the user hovers a tooltip. }}  ==Parameters==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string text...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
The event is triggered when the user hovers a tooltip.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string text&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' [[string]] containing the tooltip text. Empty string if user is not longer hovering.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Browser|webbrowser]] element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
If the user hovers the Google search input field 'Tooltip-Text: Search' will be printed in the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, function()&lt;br /&gt;
  loadBrowserURL(source, &amp;quot;https://www.google.com/?ncr&amp;amp;hl=en&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserTooltip&amp;quot;, root, function(text)&lt;br /&gt;
  if (text ~= &amp;quot;&amp;quot;) then&lt;br /&gt;
    outputChatBox(&amp;quot;Tooltip-Text: &amp;quot;..text)&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox(&amp;quot;You are not longer hovering a tooltip&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientBrowserWhitelistChange&amp;diff=59199</id>
		<title>OnClientBrowserWhitelistChange</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientBrowserWhitelistChange&amp;diff=59199"/>
		<updated>2018-09-19T19:24:49Z</updated>

		<summary type="html">&lt;p&gt;Lars-Marcel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
The event is triggered when the whitelist has changed. Note that this event is only triggered if the request window was confirmed by accepting.&lt;br /&gt;
}}&lt;br /&gt;
{{Note|Attaching the event to a webbrowser won't work. Attach it to the root element instead.}}&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table changedDomains&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''changedDomains:''' a [[table]] of changed domains.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[Element_tree#Tree_elements|root]] element.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
requestBrowserDomains({ &amp;quot;mtasa.com&amp;quot; }) -- request browser domain&lt;br /&gt;
showCursor(true) -- show cursor&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserWhitelistChange&amp;quot;, root,&lt;br /&gt;
   function(newDomains)&lt;br /&gt;
     if newDomains[1] == &amp;quot;mtasa.com&amp;quot; then&lt;br /&gt;
       local browser = createBrowser(1280, 720, false, false) -- create browser&lt;br /&gt;
       loadBrowserURL(browser, &amp;quot;http://mtasa.com/&amp;quot;) -- load browser url&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[pl:onClientBrowserWhitelistChange]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_events}}&lt;/div&gt;</summary>
		<author><name>Lars-Marcel</name></author>
	</entry>
</feed>