<?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=Miki785</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=Miki785"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Miki785"/>
	<updated>2026-04-09T13:49:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=58838</id>
		<title>SetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=58838"/>
		<updated>2018-09-04T19:45:37Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11747|&lt;br /&gt;
This function sets the name of an [[account]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountName ( account theAccount, string name [, bool allowCaseVariations = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:setName||getAccountName}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to change the name.&lt;br /&gt;
*'''name:''' The new name.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''allowCaseVariations:''' Whether the username is case sensitive (if this is set to true, usernames &amp;quot;Bob&amp;quot; and &amp;quot;bob&amp;quot; will refer to different accounts)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the account name was set, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Change the name of an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;changeaccountname&amp;quot;, function(player, _, oldname, newname)&lt;br /&gt;
    if not oldname or not newname then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    local account = getAccount(oldname)&lt;br /&gt;
    if not account then&lt;br /&gt;
        return &lt;br /&gt;
    end&lt;br /&gt;
    setAccountName(account, newname)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountIP&amp;diff=58837</id>
		<title>GetAccountIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountIP&amp;diff=58837"/>
		<updated>2018-09-04T19:42:14Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11747|&lt;br /&gt;
This function retrieves the IP address of an [[account]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountIP ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getIP|ip|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The [[account]] you wish to get the IP of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's IP, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the debugscript when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputDebugString(getPlayerName(source) .. &amp;quot; logged into his account with IP &amp;quot; .. getAccountIP(current_account)) -- announce it into the debugscript&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, getRootElement(), outputOnLogin) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBrowserProperty&amp;diff=51668</id>
		<title>SetBrowserProperty</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBrowserProperty&amp;diff=51668"/>
		<updated>2017-07-15T22:44:41Z</updated>

		<summary type="html">&lt;p&gt;Miki785: Added example&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 sets a given property of a specified browser.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBrowserProperty ( browser theBrowser, string key, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:setProperty||getBrowserProperty}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''theBrowser:''' The browser element you want to set a property of&lt;br /&gt;
*'''key:''' The browser property key. It can be:&lt;br /&gt;
**'''mobile:''' Surfing the web as mobile&lt;br /&gt;
*'''value:''' A value indicating whether to enable (&amp;quot;1&amp;quot;) the property or not (&amp;quot;0&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the property was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will add a command handler for 'mobile' that will toggle mobile browsing for all browsers.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;mobile&amp;quot;,&lt;br /&gt;
    function ()&lt;br /&gt;
        for i, browser in pairs(getElementsByType(&amp;quot;webbrowser&amp;quot;)) do&lt;br /&gt;
            setBrowserProperty(browser, &amp;quot;mobile&amp;quot;, getBrowserProperty(browser, &amp;quot;mobile&amp;quot;) == &amp;quot;1&amp;quot; and &amp;quot;0&amp;quot; or &amp;quot;1&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
    end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ExecuteBrowserJavascript&amp;diff=51667</id>
		<title>ExecuteBrowserJavascript</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ExecuteBrowserJavascript&amp;diff=51667"/>
		<updated>2017-07-15T22:34:12Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 executes a Javascript string to the specified [[Element/Browser|browser]]. Works only with local browsers.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool executeBrowserJavascript ( browser webBrowser, string jsCode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:executeJavascript}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser which will execute the Javascript code&lt;br /&gt;
*'''jsCode:''' The Javascript code string&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if executing Javascript is allowed in the current context, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to display the name (nick) of the local player on the webpage.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiGetBrowser(guiCreateBrowser(200, 200, 400, 200, true, false, false))&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, browser,&lt;br /&gt;
    function ()&lt;br /&gt;
        loadBrowserURL(source, &amp;quot;http://mta/local/example.html&amp;quot;) --Containing &amp;lt;span id=&amp;quot;nick&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; somewhere in the file&lt;br /&gt;
    end)&lt;br /&gt;
&lt;br /&gt;
--The page has to load first&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserDocumentReady&amp;quot;, browser,&lt;br /&gt;
    function ()&lt;br /&gt;
        executeBrowserJavascript(source, &amp;quot;document.getElementById('nick').innerHTML = '&amp;quot; .. getPlayerName(localPlayer) .. &amp;quot;'&amp;quot;);&lt;br /&gt;
    end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ExecuteBrowserJavascript&amp;diff=51666</id>
		<title>ExecuteBrowserJavascript</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ExecuteBrowserJavascript&amp;diff=51666"/>
		<updated>2017-07-15T22:33:51Z</updated>

		<summary type="html">&lt;p&gt;Miki785: Added example&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 executes a Javascript string to the specified [[Element/Browser|browser]]. Works only with local browsers.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool executeBrowserJavascript ( browser webBrowser, string jsCode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:executeJavascript}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser which will execute the Javascript code&lt;br /&gt;
*'''jsCode:''' The Javascript code string&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if executing Javascript is allowed in the current context, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to display the name (nick) of the local player on the webpage.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local browser = guiCreateBrowser(200, 200, 400, 200, true, false, false)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, browser,&lt;br /&gt;
    function ()&lt;br /&gt;
        loadBrowserURL(source, &amp;quot;http://mta/local/example.html&amp;quot;) --Containing &amp;lt;span id=&amp;quot;nick&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; somewhere in the file&lt;br /&gt;
    end)&lt;br /&gt;
&lt;br /&gt;
--The page has to load first&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserDocumentReady&amp;quot;, browser,&lt;br /&gt;
    function ()&lt;br /&gt;
        executeBrowserJavascript(source, &amp;quot;document.getElementById('nick').innerHTML = '&amp;quot; .. getPlayerName(localPlayer) .. &amp;quot;'&amp;quot;);&lt;br /&gt;
    end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Resource_functions&amp;diff=51665</id>
		<title>Template:Resource functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Resource_functions&amp;diff=51665"/>
		<updated>2017-07-15T22:04:07Z</updated>

		<summary type="html">&lt;p&gt;Miki785: Sorted alphabetically&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addResourceConfig]]&lt;br /&gt;
*[[addResourceMap]]&lt;br /&gt;
*[[call]]&lt;br /&gt;
*[[callRemote]]&lt;br /&gt;
*[[copyResource]]&lt;br /&gt;
*[[createResource]]&lt;br /&gt;
*[[deleteResource]]&lt;br /&gt;
*[[fetchRemote]]&lt;br /&gt;
*[[getResourceACLRequests]]&lt;br /&gt;
*[[getResourceConfig]]&lt;br /&gt;
*[[getResourceDynamicElementRoot]]&lt;br /&gt;
*[[getResourceExportedFunctions]]&lt;br /&gt;
*[[getResourceFromName]]&lt;br /&gt;
*[[getResourceInfo]]&lt;br /&gt;
*[[getResourceLastStartTime]]&lt;br /&gt;
*[[getResourceLoadFailureReason]]&lt;br /&gt;
*[[getResourceLoadTime]]&lt;br /&gt;
*[[getResourceMapRootElement]]&lt;br /&gt;
*[[getResourceName]]&lt;br /&gt;
*[[getResourceOrganizationalPath]]&lt;br /&gt;
*[[getResourceRootElement]]&lt;br /&gt;
*[[getResourceState]]&lt;br /&gt;
*[[getResources]]&lt;br /&gt;
*[[getThisResource]]&lt;br /&gt;
{{New items|3.0155|1.5.5|&lt;br /&gt;
*[[isResourceArchived]]&lt;br /&gt;
|11533}}&lt;br /&gt;
*[[refreshResources]]&lt;br /&gt;
*[[removeResourceFile]]&lt;br /&gt;
*[[renameResource]]&lt;br /&gt;
*[[restartResource]]&lt;br /&gt;
*[[setResourceInfo]]&lt;br /&gt;
*[[startResource]]&lt;br /&gt;
*[[stopResource]]&lt;br /&gt;
*[[updateResourceACLRequest]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetResourceOrganizationalPath&amp;diff=51395</id>
		<title>GetResourceOrganizationalPath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetResourceOrganizationalPath&amp;diff=51395"/>
		<updated>2017-06-28T05:32:00Z</updated>

		<summary type="html">&lt;p&gt;Miki785: Added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the organizational file path (e.g. ''[admin]'') of a resource.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getResourceOrganizationalPath ( resource theResource )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[resource]]:getOrganizationalPath }}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theResource:''' the [[resource]] of which you want to know the organizational path&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the organizational path of the [[resource]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs the path of the current resource when it is started.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
    function ()&lt;br /&gt;
        outputChatBox(getResourceName(resource) .. &amp;quot;'s path: &amp;quot; .. getResourceOrganizationalPath(resource))&lt;br /&gt;
    end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerName&amp;diff=51394</id>
		<title>GetPlayerName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerName&amp;diff=51394"/>
		<updated>2017-06-28T05:22:48Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns a string containing the name of the specified player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerName ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[player]]:getName|name|setPlayerName}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''thePlayer:''' the [[player]] you want to get the name of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the requested player's name, or ''false'' if the player passed to the function is invalid.&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
* Player name can consist of ASCII characters between 33 and 126 are allowed (basic latin):  &lt;br /&gt;
    &amp;lt;nowiki&amp;gt;!&amp;quot;#$%&amp;amp;'()*+,-./0123456789:;&amp;lt;=&amp;gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Minimal player name length is 1 character. &lt;br /&gt;
* Maximum player name length is 22 characters.&lt;br /&gt;
* Player names are case-insensitive. It is not possible to have two clients with same name but different character case.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;myname&amp;quot;,&lt;br /&gt;
  function(playerSource)&lt;br /&gt;
    outputChatBox(&amp;quot;Your name: &amp;quot;..getPlayerName(playerSource), playerSource)&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example outputs the local player name to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;myname&amp;quot;,&lt;br /&gt;
  function()&lt;br /&gt;
   local localPlayerName = getPlayerName(getLocalPlayer())&lt;br /&gt;
   --and we output it to the chatbox&lt;br /&gt;
   outputChatBox(localPlayerName)&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client player functions}}&lt;br /&gt;
[[es:getPlayerName]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetResourceOrganizationalPath&amp;diff=51326</id>
		<title>GetResourceOrganizationalPath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetResourceOrganizationalPath&amp;diff=51326"/>
		<updated>2017-06-25T05:20:12Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the organizational file path (e.g. ''[admin]'') of a resource.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getResourceOrganizationalPath ( resource theResource )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[resource]]:getOrganizationalPath }}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theResource:''' the [[resource]] of which you want to know the organizational path&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the organizational path of the [[resource]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGetCursorType&amp;diff=51049</id>
		<title>GuiGetCursorType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGetCursorType&amp;diff=51049"/>
		<updated>2017-05-18T22:18:36Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0155|1.5.5|11350|&lt;br /&gt;
This function is used to get the type of the current cursor image.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string guiGetCursorType ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[GUI widgets|GuiElement]]:getCursorType|cursorType|}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the cursor type:&lt;br /&gt;
* '''&amp;quot;none&amp;quot;'''            // cursor has no image&lt;br /&gt;
* '''&amp;quot;arrow&amp;quot;'''           // default cursor&lt;br /&gt;
* '''&amp;quot;sizing_ns&amp;quot;'''       // N-S (up-down) sizing cursor&lt;br /&gt;
* '''&amp;quot;sizing_ew&amp;quot;'''       // E-W (left-right) sizing cursor&lt;br /&gt;
* '''&amp;quot;sizing_nwse&amp;quot;'''     // NW-SE diagonal sizing cursor&lt;br /&gt;
* '''&amp;quot;sizing_nesw&amp;quot;'''     // NE-SW diagonal sizing cursor&lt;br /&gt;
* '''&amp;quot;sizing_eswe&amp;quot;'''     // ES-WE horizontal sizing cursor&lt;br /&gt;
* '''&amp;quot;move&amp;quot;'''            // move cursor&lt;br /&gt;
* '''&amp;quot;container_drag&amp;quot;'''  // drag container cursor (note: not in use)&lt;br /&gt;
* '''&amp;quot;segment_moving&amp;quot;'''  // segment moving cursor (note: not in use)&lt;br /&gt;
* '''&amp;quot;segment_sizing&amp;quot;'''  // segment sizing cursor (note: not in use)&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example prints the current cursor type in the console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputConsole( guiGetCursorType( ) )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Base64Decode&amp;diff=46824</id>
		<title>Base64Decode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Base64Decode&amp;diff=46824"/>
		<updated>2016-03-10T01:46:19Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns the decrypted data from [https://en.wikipedia.org/wiki/Base64 base64] representation of the encrypted block&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string base64Decode(string data)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''data:''' The block of data you want to decrypt&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the decrypted data from [https://en.wikipedia.org/wiki/Base64 base64] representation of the encrypted block if the decryption process was successfully completed, ''false'' otherwise.&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 k = base64Decode(&amp;quot;SGVsbG8sIHdvcmxkIQ==&amp;quot;)&lt;br /&gt;
outputConsole(k)&lt;br /&gt;
--Output: Hello, world!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Base64Encode&amp;diff=46823</id>
		<title>Base64Encode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Base64Encode&amp;diff=46823"/>
		<updated>2016-03-10T01:46:09Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns the [https://en.wikipedia.org/wiki/Base64 base64] representation of the encrypted block of data&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string base64Encode ( string data )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''data:''' The block of data you want to encrypt&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the [https://en.wikipedia.org/wiki/Base64 base64] representation of the encrypted data if the encryption process was successfully completed, ''false'' otherwise.&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 k = base64Encode(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
outputConsole(k)&lt;br /&gt;
--Output: SGVsbG8sIHdvcmxkIQ==&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=46760</id>
		<title>IsVoiceEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVoiceEnabled&amp;diff=46760"/>
		<updated>2016-02-27T17:32:53Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{New feature/item|3.0140|1.4|4639|&lt;br /&gt;
Added to client side.&lt;br /&gt;
}}&lt;br /&gt;
This function allows you to make the server reveal whether or not voice is currently enabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isVoiceEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Player]].isVoiceEnabled}}&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the voice is enabled on the server, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example shows how to forbid use voice for muted (in chat) players&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- only if voice enabled&lt;br /&gt;
if isVoiceEnabled() then&lt;br /&gt;
    -- adding handler for voice start event&lt;br /&gt;
    addEventHandler( 'onPlayerVoiceStart', root,&lt;br /&gt;
        function()&lt;br /&gt;
            -- if player is muted in chat&lt;br /&gt;
            -- do not broadcast his voice to other players&lt;br /&gt;
            if isPlayerMuted(source) then cancelEvent() end&lt;br /&gt;
        end&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSearchLightEndRadius&amp;diff=46751</id>
		<title>GetSearchLightEndRadius</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSearchLightEndRadius&amp;diff=46751"/>
		<updated>2016-02-22T13:23:04Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0160|1.6|7683|This function gets the end radius of a [[Element/Searchlight|searchlight]] element.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
searchlight getSearchLightEndRadius ( searchlight theSearchLight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Searchlight|searchLight]]:getEndRadius|endRadius|setSearchLightEndRadius}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theSearchLight''': the searchlight to get the radius of the searchlight's light cone in its end.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the specified searchlight element is valid, this function will return one ''float'', which is the searchlight's end radius. If not, it will return ''false'' plus an error message.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Client_searchlight_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSearchLightStartRadius&amp;diff=46750</id>
		<title>GetSearchLightStartRadius</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSearchLightStartRadius&amp;diff=46750"/>
		<updated>2016-02-22T13:22:57Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0160|1.6|7683|This function gets the start radius of a [[Element/Searchlight|searchlight]] element.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
searchlight getSearchLightStartRadius ( searchlight theSearchLight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Searchlight|searchLight]]:getStartRadius|startRadius|setSearchLightStartRadius}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theSearchLight''': the searchlight to get the radius of the searchlight's light cone in its beginning. &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the specified searchlight element is valid, this function will return one ''float'', which is the searchlight's start radius. If not, it will return ''false'' plus an error message.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Client_searchlight_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSearchLightEndPosition&amp;diff=46749</id>
		<title>GetSearchLightEndPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSearchLightEndPosition&amp;diff=46749"/>
		<updated>2016-02-22T13:22:48Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0160|1.6|7683|This function gets the end position of a [[Element/Searchlight|searchlight]] element.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
searchlight getSearchLightEndPosition ( searchlight theSearchLight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Searchlight|searchLight]]:getEndPosition|endPosition|setSearchLightEndPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theSearchLight''': the searchlight to get the position where the searchlight's light cone ends.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the specified searchlight element is valid, this function will return three ''float'', which are the three coordinates of searchlight's end position. If not, it will return ''false'' plus an error message.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Client_searchlight_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSearchLightStartPosition&amp;diff=46748</id>
		<title>GetSearchLightStartPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSearchLightStartPosition&amp;diff=46748"/>
		<updated>2016-02-22T13:22:37Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0160|1.6|7683|This function gets the start position of a [[Element/Searchlight|searchlight]] element.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
searchlight getSearchLightStartPosition ( searchlight theSearchLight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Searchlight|searchLight]]:getStartPosition|startPosition|setSearchLightStartPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theSearchLight''': the searchlight to get the position where the searchlight's light cone starts.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the specified searchlight element is valid, this function will return three ''float'', which are the three coordinates of searchlight's start position. If not, it will return ''false'' plus an error message.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Client_searchlight_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSearchLightEndRadius&amp;diff=46747</id>
		<title>SetSearchLightEndRadius</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSearchLightEndRadius&amp;diff=46747"/>
		<updated>2016-02-22T13:22:27Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0160|1.6|7683|This function sets the end radius of a [[Element/Searchlight|searchlight]] element.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
searchlight setSearchLightEndRadius ( searchlight theSearchlight, float endRadius )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Searchlight|searchLight]]:setEndRadius|endRadius|getSearchLightEndRadius}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theSearchLight''': the searchlight to modify the property of.&lt;br /&gt;
*'''endRadius''': the radius of the searchlight's light cone in its end.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If every argument is correct, this function returns ''true''. If not, it will return ''false'' plus an error message.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Client_searchlight_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSearchLightStartRadius&amp;diff=46746</id>
		<title>SetSearchLightStartRadius</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSearchLightStartRadius&amp;diff=46746"/>
		<updated>2016-02-22T13:22:14Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0160|1.6|7683|This function sets the start radius of a [[Element/Searchlight|searchlight]] element.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
searchlight setSearchLightStartRadius ( searchlight theSearchlight, float startRadius )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Searchlight|searchLight]]:setStartRadius|startRadius|getSearchLightStartRadius}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theSearchLight''': the searchlight to modify the property of.&lt;br /&gt;
*'''startRadius''': the radius of the searchlight's light cone in its beginning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If every argument is correct, this function returns ''true''. If not, it will return ''false'' plus an error message.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Client_searchlight_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Undocumented_Items&amp;diff=46745</id>
		<title>Undocumented Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Undocumented_Items&amp;diff=46745"/>
		<updated>2016-02-22T13:19:24Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all MTA SA functions and events which don't have the necessary documentation for scripters to allow them to use the functions or events. Documenting these will require looking through the source code, which is available in the [https://github.com/multitheftauto/mtasa-blue MTA SA GitHub repository], to get the necessary parameters.&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Client functions that need documenting ==&lt;br /&gt;
(None)&lt;br /&gt;
&lt;br /&gt;
== Server functions that need documenting ==&lt;br /&gt;
(None)&lt;br /&gt;
&lt;br /&gt;
== Client Events that need documenting ==&lt;br /&gt;
*[[onClientBrowserLoadingStart]]&lt;br /&gt;
*[[onClientBrowserTooltip]]&lt;br /&gt;
*[[onClientPlayerVoiceResumed]]&lt;br /&gt;
&lt;br /&gt;
== Server Events that need documenting ==&lt;br /&gt;
(None)&lt;br /&gt;
&lt;br /&gt;
== Other undocumented pages ==&lt;br /&gt;
(None)&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetBans&amp;diff=46123</id>
		<title>GetBans</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetBans&amp;diff=46123"/>
		<updated>2015-11-24T13:31:58Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function will return a table containing all the [[ban]]s present in the server's banlist.xml.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getBans ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[table]] containing all the [[ban]]s.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1: Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example lists every ban when somebody types &amp;quot;/bans&amp;quot;. WARNING: This will spam chat (for the player that executed the command) if the server has a lot of bans.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function listBans ( playerSource )&lt;br /&gt;
local banList = getBans() -- Return a table of all the bans.&lt;br /&gt;
	--&lt;br /&gt;
	for banID, ban in ipairs ( banList ) do -- For every ban do the following...	&lt;br /&gt;
		--&lt;br /&gt;
		local nick = getBanNick ( ban ) -- Get the IP of the ban&lt;br /&gt;
		--&lt;br /&gt;
		if nick then&lt;br /&gt;
			outputChatBox ( &amp;quot;Ban #&amp;quot; .. banID .. &amp;quot;: &amp;quot; .. nick, playerSource , 255, 0, 0, true ) -- Output the ban.&lt;br /&gt;
		end&lt;br /&gt;
		--&lt;br /&gt;
	end&lt;br /&gt;
	--&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;bans&amp;quot;, listBans ) -- Add &amp;quot;/bans&amp;quot; as the trigger for the function.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin functions}}&lt;br /&gt;
[[ru:getBans]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBan&amp;diff=46122</id>
		<title>IsBan</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBan&amp;diff=46122"/>
		<updated>2015-11-24T13:28:43Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function checks whether the passed value is valid [[ban]] or not.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBan ( ban theBan )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBan:''' The value to check&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the value is a ban, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example chechks if the passed argument is a ban or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function banRecieve ( ban )&lt;br /&gt;
if ban and isBan(ban) == true then&lt;br /&gt;
outputChatBox(&amp;quot;this is a ban!&amp;quot;)--Valid ban is recieved!&lt;br /&gt;
else&lt;br /&gt;
outputChatBox(&amp;quot;this is not a ban, this is a &amp;quot;..getElementType(ban))--if the argument is not a ban, then checks its type and output it into the chat box.&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onBan ( ban ) -- This function will be triggered every time a player is banned.&lt;br /&gt;
banRecieve(ban)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerBan&amp;quot;, getRootElement(), onBan )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function sendWrongBanArguement()&lt;br /&gt;
vehicle = createVehicle(411,0,5,3)&lt;br /&gt;
object = createObject(2600,0,0,0)&lt;br /&gt;
ped = createPed(61,0,0,3)&lt;br /&gt;
banRecieve(vehicle)--sends a vehicle as an argument.&lt;br /&gt;
banRecieve(object)--sends an object as an argument.&lt;br /&gt;
banRecieve(ped)--sends a ped as an argument.&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;sendWrongArgument&amp;quot;,sendWrongBanArguement)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[ru:isBan]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBan&amp;diff=46121</id>
		<title>IsBan</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBan&amp;diff=46121"/>
		<updated>2015-11-24T13:28:29Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function checks whether the passed value is valid [[ban]] or not.&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;&lt;br /&gt;
bool isBan ( ban theBan )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBan:''' The value to check&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the value is a ban, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example chechks if the passed argument is a ban or not.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function banRecieve ( ban )&lt;br /&gt;
if ban and isBan(ban) == true then&lt;br /&gt;
outputChatBox(&amp;quot;this is a ban!&amp;quot;)--Valid ban is recieved!&lt;br /&gt;
else&lt;br /&gt;
outputChatBox(&amp;quot;this is not a ban, this is a &amp;quot;..getElementType(ban))--if the argument is not a ban, then checks its type and output it into the chat box.&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onBan ( ban ) -- This function will be triggered every time a player is banned.&lt;br /&gt;
banRecieve(ban)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerBan&amp;quot;, getRootElement(), onBan )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function sendWrongBanArguement()&lt;br /&gt;
vehicle = createVehicle(411,0,5,3)&lt;br /&gt;
object = createObject(2600,0,0,0)&lt;br /&gt;
ped = createPed(61,0,0,3)&lt;br /&gt;
banRecieve(vehicle)--sends a vehicle as an argument.&lt;br /&gt;
banRecieve(object)--sends an object as an argument.&lt;br /&gt;
banRecieve(ped)--sends a ped as an argument.&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;sendWrongArgument&amp;quot;,sendWrongBanArguement)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[ru:isBan]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetBanTime&amp;diff=46120</id>
		<title>GetBanTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetBanTime&amp;diff=46120"/>
		<updated>2015-11-24T13:25:50Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function will return the time the specified [[ban]] was created, in '''seconds'''.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getBanTime ( ban theBan )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBan:''' The [[ban]] of which you wish to retrieve the time of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns an integer of the banning time in the format of seconds from the year 1970.  Use in conjunction with [[getRealTime]] in order to retrieve detailed information.&lt;br /&gt;
* Returns '''false''' if invalid arguments were specified or if there was no banning time specified for the [[ban]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function retrieveBan(theBan)&lt;br /&gt;
    local ban = getBanTime(theBan)&lt;br /&gt;
    if ban then&lt;br /&gt;
        outputChatBox(&amp;quot;The time of the ban is: &amp;quot; .. ban, root, 255, 255, 255, false)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin functions}}&lt;br /&gt;
[[ru:getBanTime]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetUnbanTime&amp;diff=46119</id>
		<title>SetUnbanTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetUnbanTime&amp;diff=46119"/>
		<updated>2015-11-24T13:24:09Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function sets a new unban time of a given [[ban]] using unix timestamp (seconds since Jan 01 1970).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setUnbanTime( ban theBan, int theTime )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBan:''' The [[ban]] of which to change the unban time of&lt;br /&gt;
*'''theTime:''' the new unban time&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if changed successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[ru:setUnbanTime]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerNametagColor&amp;diff=46103</id>
		<title>GetPlayerNametagColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerNametagColor&amp;diff=46103"/>
		<updated>2015-11-13T00:59:20Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function gets the current color of a player's name tag as RGB values. These are in the range 0-255.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int, int, int getPlayerNametagColor ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[player]]:getNametagColor||setPlayerNametagColor}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose name tag RGB color values you wish to retrieve.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''red'', ''green'' and ''blue'' values if an existent player was specified, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This console command will tell the player what his tag color is. The color is composed of a red, a green and a blue component, each ranging from 0-255.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function tagInfoCommand ( thePlayer, commandName )&lt;br /&gt;
	-- store the RGB data about the player who activated the command handler into the local variables r, g, b. &lt;br /&gt;
	local r, g, b = getPlayerNametagColor ( thePlayer )&lt;br /&gt;
	-- Display the RGB values in the chatbox&lt;br /&gt;
	outputChatBox ( &amp;quot;Your tag color is: R:&amp;quot; .. r .. &amp;quot; G:&amp;quot; .. g .. &amp;quot; B:&amp;quot; .. b, thePlayer )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;retrievetagcolor&amp;quot;, tagInfoCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetFPSLimit&amp;diff=46102</id>
		<title>GetFPSLimit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetFPSLimit&amp;diff=46102"/>
		<updated>2015-11-13T00:55:54Z</updated>

		<summary type="html">&lt;p&gt;Miki785: Lua converts numbers automatically&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the maximum [http://en.wikipedia.org/wiki/Frame_rate FPS (Frames per second)] that players on the server can run their game at.  &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getFPSLimit ()         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an integer between '''25''' and '''100''' of the maximum FPS that players can run their game at.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example displays a message in the chatbox showing the current fps limit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fpsLim()&lt;br /&gt;
        outputChatBox ( &amp;quot;The FPS limit is: &amp;quot; .. getFPSLimit () )&lt;br /&gt;
end                                                  &lt;br /&gt;
&lt;br /&gt;
-- Add console command &amp;quot;fpslimit&amp;quot; which calls the function fpsLim&lt;br /&gt;
addCommandHandler ( &amp;quot;fpslimit&amp;quot;, fpsLim )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=46101</id>
		<title>LoadBrowserURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=46101"/>
		<updated>2015-11-07T14:19:16Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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;
}}&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||loadBrowserURL}}&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).&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;
{{Warning|The scheme for local files was changed recently. Please read [[Local_Scheme_Handler|Local Scheme Handler]] for details.|true}}&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;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleColor&amp;diff=46000</id>
		<title>SetVehicleColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleColor&amp;diff=46000"/>
		<updated>2015-09-19T23:28:13Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the color of a vehicle. Colors are in RGB format, vehicles can have up to 4 colors. Most vehicles have 2 colors only.&lt;br /&gt;
&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setVehicleColor ( vehicle theVehicle, int r1, int g1, int b1, [int r2, int g2, int b2, int r3, int g3, int b3, int r4, int g4, int b4] )            &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{OOP||[[vehicle]]:setColor}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] that you wish to set the color of.&lt;br /&gt;
*'''r1, g1, b1:''' Three integers indicating the red, green and blue components of the first (main) color for the vehicle&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''r2, g2, b2:''' Three integers indicating the red, green and blue components of the second color for the vehicle&lt;br /&gt;
*'''r3, g3, b3:''' Three integers indicating the red, green and blue components of the third color for the vehicle&lt;br /&gt;
*'''r4, g4, b4:''' Three integers indicating the red, green and blue components of the fourth color for the vehicle&lt;br /&gt;
}}&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if vehicle's color was set, ''false'' if an invalid vehicle or invalid colors were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example implements a serverside ''random_color'' console command.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler( 'random_color',&lt;br /&gt;
	function( uPlayer )&lt;br /&gt;
		if isPedInVehicle( uPlayer ) then&lt;br /&gt;
			local uVehicle = getPedOccupiedVehicle( uPlayer )&lt;br /&gt;
			if uVehicle then&lt;br /&gt;
				local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 )&lt;br /&gt;
				setVehicleColor( uVehicle, r, g, b )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Changes_in_1.5.8&amp;diff=45999</id>
		<title>Changes in 1.5.8</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Changes_in_1.5.8&amp;diff=45999"/>
		<updated>2015-09-19T23:21:38Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Changelogs}}&lt;br /&gt;
&lt;br /&gt;
== Main Additions / Changes ==&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Scripting ==&lt;br /&gt;
&lt;br /&gt;
=== Scripting: New functions ===&lt;br /&gt;
&lt;br /&gt;
====Client====&lt;br /&gt;
*[[getTrainTrack]]&lt;br /&gt;
*[[isVehicleWindowOpen]]&lt;br /&gt;
*[[setTrainTrack]]&lt;br /&gt;
*[[setVehicleWindowOpen]]&lt;br /&gt;
&lt;br /&gt;
==== Server ====&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
==== Shared (''Client &amp;amp; Server side'') ====&lt;br /&gt;
*[[fileGetPath]]&lt;br /&gt;
&lt;br /&gt;
=== Scripting: New Events ===&lt;br /&gt;
&lt;br /&gt;
==== Client ====&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
==== Server ====&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
=== Scripting: Changes, Bugfixes and Additions ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Client ==&lt;br /&gt;
&lt;br /&gt;
=== Client: Additions ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
=== Client: Bugfixes &amp;amp; Changes ===&lt;br /&gt;
* Fixed team members not fully synced until re-set by setPlayerTeam or respawn.&lt;br /&gt;
&lt;br /&gt;
== Server ==&lt;br /&gt;
&lt;br /&gt;
=== Server: Additions ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
=== Server: Bugfixes &amp;amp; Changes ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Editor ==&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Extra information ==&lt;br /&gt;
''More detailed information available on [https://bugs.multitheftauto.com/changelog_page.php Bug tracker Changelog] and GitHub repositories:&lt;br /&gt;
:* [https://github.com/multitheftauto/mtasa-blue MTA: SA Blue]&lt;br /&gt;
:* [https://github.com/multitheftauto/mtasa-resources MTA: SA Official Resources]&lt;br /&gt;
&lt;br /&gt;
[[Category:Changelog]]&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBanAdmin&amp;diff=45997</id>
		<title>SetBanAdmin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBanAdmin&amp;diff=45997"/>
		<updated>2015-09-15T20:59:54Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function sets a new admin for a [[ban]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBanAdmin ( ban theBan, string theAdmin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBan:''' The [[ban]] you want to change the admin of.&lt;br /&gt;
*'''theAdmin:''' The new admin.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example changes the ban admin to the admin's IP (If it's a player), when someone gets banned.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function banHappened(theBan)&lt;br /&gt;
    if getElementType(source) == &amp;quot;player&amp;quot; then&lt;br /&gt;
        local adminIP = getPlayerIP(source)&lt;br /&gt;
        setBanAdmin(theBan,adminIP)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onBan&amp;quot;, getRootElement(), banHappened )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[ru:setBanAdmin]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBanAdmin&amp;diff=45996</id>
		<title>SetBanAdmin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBanAdmin&amp;diff=45996"/>
		<updated>2015-09-15T20:58:42Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function sets a new admin for a [[ban]].&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;&lt;br /&gt;
bool setBanAdmin ( ban theBan, string theAdmin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBan:''' The [[ban]] you want to change the admin of.&lt;br /&gt;
*'''theAdmin:''' The new admin.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example changes the ban admin to the admin's IP (If it's a player), when someone gets banned.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function banHappened(theBan)&lt;br /&gt;
    if getElementType(source) == &amp;quot;player&amp;quot; then&lt;br /&gt;
        local adminIP = getPlayerIP(source)&lt;br /&gt;
        setBanAdmin(theBan,adminIP)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onBan&amp;quot;, getRootElement(), banHappened )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
[[ru:setBanAdmin]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Changes_in_1.5.8&amp;diff=45995</id>
		<title>Changes in 1.5.8</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Changes_in_1.5.8&amp;diff=45995"/>
		<updated>2015-09-15T20:44:02Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Changelogs}}&lt;br /&gt;
&lt;br /&gt;
== Main Additions / Changes ==&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Scripting ==&lt;br /&gt;
&lt;br /&gt;
=== Scripting: New functions ===&lt;br /&gt;
&lt;br /&gt;
====Client====&lt;br /&gt;
*[[getTrainTrack]]&lt;br /&gt;
*[[isVehicleWindowOpen]]&lt;br /&gt;
*[[setTrainTrack]]&lt;br /&gt;
*[[setVehicleWindowOpen]]&lt;br /&gt;
&lt;br /&gt;
==== Server ====&lt;br /&gt;
*[[fileGetPath]]&lt;br /&gt;
&lt;br /&gt;
==== Shared (''Client &amp;amp; Server side'') ====&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
=== Scripting: New Events ===&lt;br /&gt;
&lt;br /&gt;
==== Client ====&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
==== Server ====&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
=== Scripting: Changes, Bugfixes and Additions ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Client ==&lt;br /&gt;
&lt;br /&gt;
=== Client: Additions ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
=== Client: Bugfixes &amp;amp; Changes ===&lt;br /&gt;
* Fixed team members not fully synced until re-set by setPlayerTeam or respawn.&lt;br /&gt;
&lt;br /&gt;
== Server ==&lt;br /&gt;
&lt;br /&gt;
=== Server: Additions ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
=== Server: Bugfixes &amp;amp; Changes ===&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Editor ==&lt;br /&gt;
* None yet&lt;br /&gt;
&lt;br /&gt;
== Extra information ==&lt;br /&gt;
''More detailed information available on [https://bugs.multitheftauto.com/changelog_page.php Bug tracker Changelog] and GitHub repositories:&lt;br /&gt;
:* [https://github.com/multitheftauto/mtasa-blue MTA: SA Blue]&lt;br /&gt;
:* [https://github.com/multitheftauto/mtasa-resources MTA: SA Official Resources]&lt;br /&gt;
&lt;br /&gt;
[[Category:Changelog]]&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetBrowserSource&amp;diff=45994</id>
		<title>GetBrowserSource</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetBrowserSource&amp;diff=45994"/>
		<updated>2015-09-15T20:19:14Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0151|1.5.1|7392|&lt;br /&gt;
This function can be used to retrieve the source code of a website (asynchronously). The size of the source code is limited to 2 MiB (remaining bytes are cut).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getBrowserSource ( function callback )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
====Callback syntax====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ( string code )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{OOP||[[Element/Browser|Browser]].getSource}}&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if valid arguments have been passed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local browser = createBrowser(...)&lt;br /&gt;
&lt;br /&gt;
-- Assuming a website has already been loaded&lt;br /&gt;
getBrowserSource(function(code)&lt;br /&gt;
    -- Output code&lt;br /&gt;
    outputChatBox(code)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBrowserAjaxHandler&amp;diff=45993</id>
		<title>SetBrowserAjaxHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBrowserAjaxHandler&amp;diff=45993"/>
		<updated>2015-09-15T20:18:52Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0151|1.5.1||&lt;br /&gt;
This function provides a requestable ajax resource for Lua/Javascript communication for a [[Element/Browser|browser]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBrowserAjaxHandler ( browser webBrowser, string url [, function handler] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:setAjaxHandler}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser which will execute the Javascript code&lt;br /&gt;
*'''url:''' The URL endpoint to handle&lt;br /&gt;
{{Warning|Do not use the same path as an existing file as url parameter. Ajax handlers have a higher priority than regular files, which will lead to inaccesibility of the original file if an ajax handler is attached to the same path. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''handler:''' The function to call if the webBrowser attempts to open the ajax endpoint. If this parameter is nil or omitted, the ajax handler for the url will be deleted.&lt;br /&gt;
&lt;br /&gt;
===Additional Information===&lt;br /&gt;
The handling function (if given), will be called with two tables, representing GET and POST parameters. The handling function may return a string which will be provided to the browser as file content.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will output all GET Parameters as well the number of requests made to the ajax endpoint.&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, true, 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;
&lt;br /&gt;
local counter = 0&lt;br /&gt;
setBrowserAjaxHandler(webBrowser, &amp;quot;ajax.html&amp;quot;,&lt;br /&gt;
	function(get, post)&lt;br /&gt;
		counter = counter+1&lt;br /&gt;
		local output = string.format(&amp;quot;&amp;lt;pre&amp;gt;You have requested this page %d times.\n&amp;quot;, counter)&lt;br /&gt;
		-- List Parameters&lt;br /&gt;
		local getParameters = &amp;quot;Get Parameters: \n&amp;quot;&lt;br /&gt;
		for k, v in pairs(get) do &lt;br /&gt;
			getParameters = getParameters..string.format(&amp;quot;[%s] = %s\n&amp;quot;, k, v)&lt;br /&gt;
		end &lt;br /&gt;
		&lt;br /&gt;
		output = output..getParameters..&amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;&lt;br /&gt;
		return output&lt;br /&gt;
	end&lt;br /&gt;
);&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 file.&lt;br /&gt;
		loadBrowserURL(webBrowser, &amp;quot;http://mta/local/ajax.html?hello=world&amp;quot;)&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;
===Returns===&lt;br /&gt;
Returns ''true'' if the ajax handler could be created/removed.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RequestBrowserDomains&amp;diff=45992</id>
		<title>RequestBrowserDomains</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RequestBrowserDomains&amp;diff=45992"/>
		<updated>2015-09-15T20:18:08Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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;
}}&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] )&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;
&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;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBrowserVolume&amp;diff=45991</id>
		<title>SetBrowserVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBrowserVolume&amp;diff=45991"/>
		<updated>2015-09-15T20:17:52Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 sets either a specific [[Element/Browser|browser]]'s volume, or the overall volume for browsers.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBrowserVolume ( [browser webBrowser], float volume )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:setVolume}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''volume:''' A [[float|floating]] point number representing the desired volume level. Range is from '''0.0''' to '''1.0'''&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''webBrowser:''' A browser 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;
--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 remote mode.&lt;br /&gt;
local window = guiCreateWindow(0, 0, screenWidth, screenHeight, &amp;quot;Webbrowser&amp;quot;, false)&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, window)&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&lt;br /&gt;
local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, &lt;br /&gt;
	function()&lt;br /&gt;
		-- After the browser has been initialized, we can load www.youtube.com&lt;br /&gt;
		loadBrowserURL(source, &amp;quot;http://www.youtube.com&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addCommandHandler (&amp;quot;volume&amp;quot;, -- Add command named 'value'&lt;br /&gt;
  function (player, command, value)&lt;br /&gt;
    if tonumber (value) then -- checking if the value is a number&lt;br /&gt;
      setBrowserVolume (theBrowser, value) -- setting the volume value&lt;br /&gt;
    else -- if there is no value&lt;br /&gt;
      outputChatBox (&amp;quot;You must enter a value.&amp;quot;, player)&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;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBrowserRenderingPaused&amp;diff=45990</id>
		<title>SetBrowserRenderingPaused</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBrowserRenderingPaused&amp;diff=45990"/>
		<updated>2015-09-15T20:17:28Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 sets the rendering state of a browser.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBrowserRenderingPaused ( browser webBrowser, bool paused )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[browser]]:setRenderingPaused}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''webBrowser:''' The browser&lt;br /&gt;
*'''paused:''' ''true'' to pause rendering, ''false'' to continue&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the state was successfully changed&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 remote mode.&lt;br /&gt;
local window = guiCreateWindow(0, 0, screenWidth, screenHeight, &amp;quot;Webbrowser&amp;quot;, false)&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, window)&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&lt;br /&gt;
local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, &lt;br /&gt;
	function()&lt;br /&gt;
		-- After the browser has been initialized, we can load www.youtube.com&lt;br /&gt;
		loadBrowserURL(source, &amp;quot;http://www.youtube.com&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addCommandHandler (&amp;quot;pause&amp;quot;, -- Add command named 'pause'&lt;br /&gt;
  function (player, command, value)&lt;br /&gt;
    if (value) then -- checking for a value&lt;br /&gt;
      setBrowserRenderingPaused (theBrowser, value) &lt;br /&gt;
    else -- if there is no value&lt;br /&gt;
      outputChatBox (&amp;quot;You must enter a value.&amp;quot;, player)&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;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseWheel&amp;diff=45989</id>
		<title>InjectBrowserMouseWheel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseWheel&amp;diff=45989"/>
		<updated>2015-09-15T20:15:55Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 injects mouse wheel events. &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool injectBrowserMouseWheel ( browser webBrowser, int verticalScroll, int horizontalScroll )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:injectMouseWheel||injectBrowserMouseWheel}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser&lt;br /&gt;
*'''verticalScroll''': Amount of units you want the browser to scroll along the Y-axe.&lt;br /&gt;
*'''horizontalScroll''': Amount of units you want the browser to scroll along the X-axe.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the mouse action was successfully injected, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local webBrowser = createBrowser(1000, 1000, false, false)&lt;br /&gt;
showCursor(true)&lt;br /&gt;
&lt;br /&gt;
function webBrowserRender()&lt;br /&gt;
        dxDrawImage(0, 0, 1000, 1000, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, webBrowser,&lt;br /&gt;
        function()&lt;br /&gt;
              loadBrowserURL(webBrowser, &amp;quot;https://www.youtube.com/tv#/watch?mode=transport&amp;amp;v=jofNR_WkoCE&amp;quot;)&lt;br /&gt;
              addEventHandler(&amp;quot;onClientRender&amp;quot;, root, webBrowserRender)&lt;br /&gt;
              addEventHandler(&amp;quot;onClientKey&amp;quot;, root, onKey)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
function onKey(button)&lt;br /&gt;
	if button == &amp;quot;mouse_wheel_down&amp;quot; then&lt;br /&gt;
		injectBrowserMouseWheel(webBrowser, -40, 0)&lt;br /&gt;
	elseif button == &amp;quot;mouse_wheel_up&amp;quot; then&lt;br /&gt;
		injectBrowserMouseWheel(webBrowser, 40, 0)&lt;br /&gt;
	end&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
Todo&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseUp&amp;diff=45988</id>
		<title>InjectBrowserMouseUp</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseUp&amp;diff=45988"/>
		<updated>2015-09-15T20:15:46Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 injects a mouse click (state: up). &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool injectBrowserMouseUp ( browser webBrowser, string mouseButton )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:injectMouseUp||injectBrowserMouseUp}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser&lt;br /&gt;
*'''mouseButton:''' The mouse button (Possible values: ''left'', ''middle'', ''right'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the click was successfully injected, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addEventHandler(&amp;quot;onClientClick&amp;quot;, root,&lt;br /&gt;
	function(button, state)&lt;br /&gt;
		if state == &amp;quot;down&amp;quot; then&lt;br /&gt;
			injectBrowserMouseDown(browser, button)&lt;br /&gt;
		else&lt;br /&gt;
			injectBrowserMouseUp(browser, button)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseMove&amp;diff=45987</id>
		<title>InjectBrowserMouseMove</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseMove&amp;diff=45987"/>
		<updated>2015-09-15T20:15:27Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 injects a mouse movement.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool injectBrowserMouseMove ( browser webBrowser, int posX, int posY )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:injectMouseMove||injectBrowserMouseMove}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The browser which will retrieve the mouse movement&lt;br /&gt;
*'''posX:''' Absolute X screen coordinate&lt;br /&gt;
*'''posY:''' Absolute Y screen coordinate&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the movement was injected successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function onCursorMove ( relativeX , relativeY , absoluteX , absoluteY ) &lt;br /&gt;
	injectBrowserMouseMove ( browser , absoluteX , absoluteY ) &lt;br /&gt;
end &lt;br /&gt;
addEventHandler ( &amp;quot;onClientCursorMove&amp;quot; , root , onCursorMove )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
Todo&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseDown&amp;diff=45986</id>
		<title>InjectBrowserMouseDown</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseDown&amp;diff=45986"/>
		<updated>2015-09-15T20:15:19Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 injects a mouse click (state: down).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool injectBrowserMouseDown ( browser webBrowser, string mouseButton )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:injectMouseDown||injectBrowserMouseDown}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser&lt;br /&gt;
*'''mouseButton:''' The mouse button (Possible values: ''left'', ''middle'', ''right'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the click was successfully injected, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addEventHandler(&amp;quot;onClientClick&amp;quot;, root,&lt;br /&gt;
	function(button, state)&lt;br /&gt;
	if state == &amp;quot;down&amp;quot; then&lt;br /&gt;
		injectBrowserMouseDown(browser, button)&lt;br /&gt;
	else&lt;br /&gt;
		injectBrowserMouseUp(browser, button)&lt;br /&gt;
	end &lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetBrowserURL&amp;diff=45985</id>
		<title>GetBrowserURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetBrowserURL&amp;diff=45985"/>
		<updated>2015-09-15T20:15:11Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 returns the URL of the specified [[Element/Browser|browser]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBrowserURL ( browser webBrowser )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:getURL||getBrowserURL}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''webBrowser:''' The browser&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the web browser URL.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetBrowserTitle&amp;diff=45984</id>
		<title>GetBrowserTitle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetBrowserTitle&amp;diff=45984"/>
		<updated>2015-09-15T20:15:02Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 returns the title of the passed [[Element/Browser|browser]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBrowserTitle ( browser webBrowser )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:getTitle||getBrowserTitle}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The browser&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the title as a [[string]]. Returns false if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;browsers&amp;quot;,&lt;br /&gt;
	function()&lt;br /&gt;
		outputChatBox(&amp;quot;List of browser titles:&amp;quot;)&lt;br /&gt;
		for k, v in pairs( getElementByType(&amp;quot;web-browser&amp;quot;) ) do&lt;br /&gt;
			outputChatBox(k .. &amp;quot;. &amp;quot; .. getBrowserTitle(v))&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;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBrowserLoading&amp;diff=45983</id>
		<title>IsBrowserLoading</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBrowserLoading&amp;diff=45983"/>
		<updated>2015-09-15T20:14:35Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 checks if a browser is currently loading a website.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBrowserLoading ( browser webBrowser )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:isLoading||isBrowserLoading}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The browser&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the browser is loading a website, ''false'' otherwise and ''nil'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will add an command /checkload to check if the site is loading or not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local webbrowser = createBrowser(1000, 1000, false, false)&lt;br /&gt;
loadBrowserUrl(webbrowser, &amp;quot;https://www.youtube.com/watch?v=jofNR_WkoCE&amp;quot;)&lt;br /&gt;
addCommandHandler(&amp;quot;checkload&amp;quot;,&lt;br /&gt;
      function()&lt;br /&gt;
            if isBrowserLoading(webbrowser) then  &lt;br /&gt;
                  outputChatBox(&amp;quot;Please  wait, The site is loading!&amp;quot;) &lt;br /&gt;
            else&lt;br /&gt;
                  outputChatBox(&amp;quot;This site was already loaded&amp;quot;)&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsBrowserFocused&amp;diff=45982</id>
		<title>IsBrowserFocused</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsBrowserFocused&amp;diff=45982"/>
		<updated>2015-09-15T20:14:27Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
This function checks if a browser is focused.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isBrowserFocused ( browser webBrowser )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:isFocused}}&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The browser&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the browser is focused, ''false'' otherwise and ''nil'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
TODO&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FocusBrowser&amp;diff=45981</id>
		<title>FocusBrowser</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FocusBrowser&amp;diff=45981"/>
		<updated>2015-09-15T20:14:06Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
This function will attempt to focus the [[Element/Browser|browser]] or unfocus all browsers. The browser that is focused will retrieve keyboard input.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool focusBrowser ( browser webBrowser )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:focus||focusBrowser}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser to be focused - if this is '''nil''', it will unfocus all browsers.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the browser was focused or if nil was passed, ''false'' if it failed to focus or the browser does not exist.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ExecuteBrowserJavascript&amp;diff=45980</id>
		<title>ExecuteBrowserJavascript</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ExecuteBrowserJavascript&amp;diff=45980"/>
		<updated>2015-09-15T20:13:51Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
This function executes a Javascript string to the specified [[Element/Browser|browser]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool executeBrowserJavascript ( browser webBrowser, string jsCode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:executeJavascript||executeBrowserJavascript}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser which will execute the Javascript code&lt;br /&gt;
*'''jsCode:''' The Javascript code string&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if executing Javascript is allowed in the current context, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGetBrowser&amp;diff=45979</id>
		<title>GuiGetBrowser</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGetBrowser&amp;diff=45979"/>
		<updated>2015-09-15T20:13:02Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 creates gets the browser element behind a gui-browser (a browser that has been created via [[guiCreateBrowser]]).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
browser guiGetBrowser ( gui-browser theBrowser )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/gui-browser|guiBrowser]].getBrowser|}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theBrowser:''' The gui-browser&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the [[Element/Browser|Browser]] element if a correct [[Element/gui-browser|gui-browser]] has been passed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This examples get's browser element from gui-browser and attach a webbrowser to a CEGUI window.&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 remote mode.&lt;br /&gt;
local window = guiCreateWindow(200, 200, 1024, 768, &amp;quot;Webbrowser&amp;quot;, false)&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, window)&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&lt;br /&gt;
local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, &lt;br /&gt;
	function()&lt;br /&gt;
		-- After the browser has been initialized, we can load www.youtube.com&lt;br /&gt;
		loadBrowserURL(source, &amp;quot;http://www.youtube.com&amp;quot;)&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;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateBrowser&amp;diff=45978</id>
		<title>GuiCreateBrowser</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateBrowser&amp;diff=45978"/>
		<updated>2015-09-15T20:11:29Z</updated>

		<summary type="html">&lt;p&gt;Miki785: &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 creates a new CEGUI web [[Element/Browser|browser]] element.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;gui-browser guiCreateBrowser( float x, float y, float width, float height, bool isLocal, bool isTransparent, bool isRelative [ , element parent = nil ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/gui-browser|GuiBrowser]]}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''x, y:''' The browser's position&lt;br /&gt;
*'''width:''' The browser's native width&lt;br /&gt;
*'''height:''' The browser's native height&lt;br /&gt;
*'''isLocal:''' See examples&lt;br /&gt;
*'''isTransparent:''' ''true'' if you want the browser to support transparency, ''false'' otherwise&lt;br /&gt;
*'''isRelative:''' This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''parent:''' This is the parent that the radio button is attached to. If the relative argument is true, sizes and positioning will be made relative to this parent. If the relative argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning. &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[gui-browser]] element was successfully created, ''false'' otherwise. Returns also ''false'', if the user disabled remote pages and ''isLocal'' was set to ''false''.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This examples attached a webbrowser to a CEGUI window, '''not is tested'''&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 remote mode.&lt;br /&gt;
local window = guiCreateWindow(0, 0, screenWidth, screenHeight, &amp;quot;Webbrowser&amp;quot;, false)&lt;br /&gt;
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, window)&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&lt;br /&gt;
local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser&lt;br /&gt;
addEventHandler(&amp;quot;onClientBrowserCreated&amp;quot;, theBrowser, &lt;br /&gt;
	function()&lt;br /&gt;
		-- After the browser has been initialized, we can load www.youtube.com&lt;br /&gt;
		loadBrowserURL(source, &amp;quot;http://www.youtube.com&amp;quot;)&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;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Miki785</name></author>
	</entry>
</feed>