<?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=AfuSensi</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=AfuSensi"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/AfuSensi"/>
	<updated>2026-05-22T00:53:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:AfuSensi&amp;diff=65116</id>
		<title>User:AfuSensi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:AfuSensi&amp;diff=65116"/>
		<updated>2020-02-12T12:09:00Z</updated>

		<summary type="html">&lt;p&gt;AfuSensi: Created page with &amp;quot;== Contact == *[https://github.com/AfuSensi GitHub Profile] *[https://forum.mtasa.com/profile/44273-afusensi/ Forum Profile]&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Contact ==&lt;br /&gt;
*[https://github.com/AfuSensi GitHub Profile]&lt;br /&gt;
*[https://forum.mtasa.com/profile/44273-afusensi/ Forum Profile]&lt;/div&gt;</summary>
		<author><name>AfuSensi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=65115</id>
		<title>LoadBrowserURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=65115"/>
		<updated>2020-02-12T12:03:55Z</updated>

		<summary type="html">&lt;p&gt;AfuSensi: &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 should use [[requestBrowserDomains]] first to request permission to load the url on the client.}}&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;
&lt;br /&gt;
===Optional Arguments===&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>AfuSensi</name></author>
	</entry>
</feed>