<?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=DieselTV</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=DieselTV"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/DieselTV"/>
	<updated>2026-05-12T17:21:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=62009</id>
		<title>LoadBrowserURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=62009"/>
		<updated>2019-01-20T17:50:23Z</updated>

		<summary type="html">&lt;p&gt;DieselTV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
This function loads the specified URL.&lt;br /&gt;
{{Note|You Must Use [[requestBrowserDomains]] to load the page on the specific browser. -- Made By: Mohamed Hussein}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool loadBrowserURL ( browser webBrowser, string url [, string postData = &amp;quot;&amp;quot;, bool urlEncoded = true ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:loadURL|url|getBrowserURL}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The [[Element/Browser|browser]] element which will load the URL&lt;br /&gt;
*'''url:''' The url you want to load. It can either contain a remote website (&amp;quot;http://&amp;quot; prefix) or a website stored within a local resource (&amp;quot;http://mta/local/gui.html&amp;quot; for example, see [[Local_Scheme_Handler|Local Scheme Handler]] for details).&lt;br /&gt;
*'''postData:''' The post data passed to the website. Its content type can be any type (e.g. JSON) if urlEncoded is set to ''false''&lt;br /&gt;
*'''urlEncoded:''' If set to ''true'', it will be available f.e. in PHP's $_POST variable (the content type is: ''application/x-www-form-urlencoded'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the URL was successfully loaded.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- In order to render the browser on the full screen, we need to know the dimensions.&lt;br /&gt;
local screenWidth, screenHeight = guiGetScreenSize()&lt;br /&gt;
&lt;br /&gt;
-- Let's create a new browser in local mode. We will not be able to load an external URL.&lt;br /&gt;
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)&lt;br /&gt;
	&lt;br /&gt;
-- This is the function to render the browser.&lt;br /&gt;
function webBrowserRender()&lt;br /&gt;
	-- Render the browser on the full size of the screen.&lt;br /&gt;
	dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- The event onClientBrowserCreated will be triggered, after the browser has been initialized.&lt;br /&gt;
-- After this event has been triggered, we will be able to load our URL and start drawing.&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, webBrowser, &lt;br /&gt;
	function()&lt;br /&gt;
		-- After the browser has been initialized, we can load our website.&lt;br /&gt;
		loadBrowserURL(webBrowser, &amp;quot;https://www.youtube.com/&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		-- Now we can start to render the browser.&lt;br /&gt;
		addEventHandler(&amp;quot;onClientRender&amp;quot;, root, webBrowserRender)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:loadBrowserURL]]&lt;/div&gt;</summary>
		<author><name>DieselTV</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=62008</id>
		<title>LoadBrowserURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=62008"/>
		<updated>2019-01-20T17:49:57Z</updated>

		<summary type="html">&lt;p&gt;DieselTV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
This function loads the specified URL.&lt;br /&gt;
{{Note|You Must Use [[requestBrowserDomains]] to load the page on the specific browser}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool loadBrowserURL ( browser webBrowser, string url [, string postData = &amp;quot;&amp;quot;, bool urlEncoded = true ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:loadURL|url|getBrowserURL}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The [[Element/Browser|browser]] element which will load the URL&lt;br /&gt;
*'''url:''' The url you want to load. It can either contain a remote website (&amp;quot;http://&amp;quot; prefix) or a website stored within a local resource (&amp;quot;http://mta/local/gui.html&amp;quot; for example, see [[Local_Scheme_Handler|Local Scheme Handler]] for details).&lt;br /&gt;
*'''postData:''' The post data passed to the website. Its content type can be any type (e.g. JSON) if urlEncoded is set to ''false''&lt;br /&gt;
*'''urlEncoded:''' If set to ''true'', it will be available f.e. in PHP's $_POST variable (the content type is: ''application/x-www-form-urlencoded'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the URL was successfully loaded.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- In order to render the browser on the full screen, we need to know the dimensions.&lt;br /&gt;
local screenWidth, screenHeight = guiGetScreenSize()&lt;br /&gt;
&lt;br /&gt;
-- Let's create a new browser in local mode. We will not be able to load an external URL.&lt;br /&gt;
local webBrowser = createBrowser(screenWidth, screenHeight, false, false)&lt;br /&gt;
	&lt;br /&gt;
-- This is the function to render the browser.&lt;br /&gt;
function webBrowserRender()&lt;br /&gt;
	-- Render the browser on the full size of the screen.&lt;br /&gt;
	dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- The event onClientBrowserCreated will be triggered, after the browser has been initialized.&lt;br /&gt;
-- After this event has been triggered, we will be able to load our URL and start drawing.&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, webBrowser, &lt;br /&gt;
	function()&lt;br /&gt;
		-- After the browser has been initialized, we can load our website.&lt;br /&gt;
		loadBrowserURL(webBrowser, &amp;quot;https://www.youtube.com/&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		-- Now we can start to render the browser.&lt;br /&gt;
		addEventHandler(&amp;quot;onClientRender&amp;quot;, root, webBrowserRender)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:loadBrowserURL]]&lt;/div&gt;</summary>
		<author><name>DieselTV</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RequestBrowserDomains&amp;diff=62007</id>
		<title>RequestBrowserDomains</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RequestBrowserDomains&amp;diff=62007"/>
		<updated>2019-01-20T17:48:42Z</updated>

		<summary type="html">&lt;p&gt;DieselTV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
This function opens a request window in order to accept the requested remote URLs.&lt;br /&gt;
{{Note|Using [[loadBrowserURL]] without using requestBrowserDomains so the links may not work. -- made by Mohamed Hussein}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool requestBrowserDomains ( table pages [, bool parseAsURL = false, function callback ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|Browser]].requestDomains}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pages:''' A table containing all domains&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''parseAsURL:''' ''true'' if the passed addresses should be converted from URLs, ''false'' otherwise.&lt;br /&gt;
*'''callback:''' A callback function that is called as soon as the result is available&lt;br /&gt;
Syntax:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function(bool wasAccapted, table new_domains)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''true''', if the string was successfully read, '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;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;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:requestBrowserDomains]]&lt;/div&gt;</summary>
		<author><name>DieselTV</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RequestBrowserDomains&amp;diff=62006</id>
		<title>RequestBrowserDomains</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RequestBrowserDomains&amp;diff=62006"/>
		<updated>2019-01-20T17:48:00Z</updated>

		<summary type="html">&lt;p&gt;DieselTV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
This function opens a request window in order to accept the requested remote URLs.&lt;br /&gt;
{{Note|Using [[loadBrowserURL]] without using requestBrowserDomains so the links may not work.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool requestBrowserDomains ( table pages [, bool parseAsURL = false, function callback ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|Browser]].requestDomains}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pages:''' A table containing all domains&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''parseAsURL:''' ''true'' if the passed addresses should be converted from URLs, ''false'' otherwise.&lt;br /&gt;
*'''callback:''' A callback function that is called as soon as the result is available&lt;br /&gt;
Syntax:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function(bool wasAccapted, table new_domains)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''true''', if the string was successfully read, '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;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;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:requestBrowserDomains]]&lt;/div&gt;</summary>
		<author><name>DieselTV</name></author>
	</entry>
</feed>