<?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=OpenIDUser62</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=OpenIDUser62"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/OpenIDUser62"/>
	<updated>2026-05-05T02:51:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=44816</id>
		<title>LoadBrowserURL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=LoadBrowserURL&amp;diff=44816"/>
		<updated>2015-03-25T06:49:43Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser62: &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 )&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 [[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;gui.html&amp;quot; for example).&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, 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;
--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;html/site.html&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;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser62</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsPlayerInACL&amp;diff=41063</id>
		<title>IsPlayerInACL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsPlayerInACL&amp;diff=41063"/>
		<updated>2014-07-29T05:36:28Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser62: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns true if the player is in the ACL group, false if otherwise.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPlayerInACL ( player thePlayer, string ACLGroup )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''thePlayer''': The player element that you want to check&lt;br /&gt;
* '''ACLGroup''': The name of the ACL group that you want to check&lt;br /&gt;
&lt;br /&gt;
'''Important Note''': This function will only work on the server-side.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the player's account is in the ACL, false if otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isPlayerInACL ( player, acl )&lt;br /&gt;
	local account = getPlayerAccount ( player )&lt;br /&gt;
	if ( isGuestAccount ( account ) ) then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
        return isObjectInACLGroup ( &amp;quot;user.&amp;quot;..getAccountName ( account ), aclGetGroup ( acl ) )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This is an example of the function.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function checkAccess(thePlayer)&lt;br /&gt;
 if isPlayerInACL(thePlayer, &amp;quot;Console&amp;quot;) then&lt;br /&gt;
  outputChatBox(&amp;quot;Access Granted!&amp;quot;)&lt;br /&gt;
   else&lt;br /&gt;
  outputChatBox(&amp;quot;Access Denied!&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;myaccess&amp;quot;, checkAccess)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
xXMADEXx &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser62</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawLinedRectangle&amp;diff=40370</id>
		<title>DxDrawLinedRectangle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawLinedRectangle&amp;diff=40370"/>
		<updated>2014-06-29T12:02:41Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser62: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
[[:Category:Useful_Functions]]&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This is a function that will create a rectangle outline with dx lines.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxDrawLinedRectangle( float x, float y, float width, float height, int color [int width=1, bool postGUI=false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''x:''' An integer representing the absolute start X position of the line, represented by pixels on the screen.&lt;br /&gt;
* '''y:''' An integer representing the absolute start Y position of the line, represented by pixels on the screen.&lt;br /&gt;
* '''width:''' An float representing the width of the area, drawn in a right direction from the origin.&lt;br /&gt;
* '''height:''' An float representing the height of the rectangle, drawn in a downwards direction from the origin.&lt;br /&gt;
* '''color:''' the hex color of the rectangle, produced using tocolor or 0xAARRGGBB (AA = alpha, RR = red, GG = green, BB = blue).&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''width:''' An integer representing how thick the lines will be.&lt;br /&gt;
* '''postGUI:''' A bool representing whether the line should be drawn on top of or behind any ingame GUI.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the operation was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside script&amp;quot; class=&amp;quot;client&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;
function dxDrawLinedRectangle( x, y, width, height, color, _width, postGUI )&lt;br /&gt;
	local _width = _width or 1&lt;br /&gt;
	dxDrawLine ( x, y, x+width, y, color, _width, postGUI ) -- Top&lt;br /&gt;
	dxDrawLine ( x, y, x, y+height, color, _width, postGUI ) -- Left&lt;br /&gt;
	dxDrawLine ( x, y+height, x+width, y+height, color, _width, postGUI ) -- Bottom&lt;br /&gt;
	return dxDrawLine ( x+width, y, x+width, y+height, color, _width, postGUI ) -- Right&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This draws a green rectangle:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sx, sy = guiGetScreenSize ( )&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        dxDrawLinedRectangle( 5, 5, sx/2, sy/2, tocolor ( 0, 255, 0, 255 ), 3, true )&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Author: xXMADEXx&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser62</name></author>
	</entry>
</feed>