<?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=XXMADEXx</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=XXMADEXx"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/XXMADEXx"/>
	<updated>2026-05-04T10:19:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawLinedRectangle&amp;diff=36820</id>
		<title>DxDrawLinedRectangle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawLinedRectangle&amp;diff=36820"/>
		<updated>2013-08-02T17:30:37Z</updated>

		<summary type="html">&lt;p&gt;XXMADEXx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&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;
	local postGUI = postGUI or false&lt;br /&gt;
	dxDrawLine ( x, y, x+width, y, color, _width, postGUI ) -- Top Arross&lt;br /&gt;
	dxDrawLine ( x, y, x, y+height, color, _width, post ) -- Left Down&lt;br /&gt;
	dxDrawLine ( x, y+height, x+width, y+height, color, _width, postGUI ) --Bottom Across&lt;br /&gt;
	return dxDrawLine ( x+width, y, x+width, y+height, color, _width, postGUI ) -- Right Down &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 white rectangle in the middle of the GTA world for no reason&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>XXMADEXx</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawLinedRectangle&amp;diff=36817</id>
		<title>DxDrawLinedRectangle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawLinedRectangle&amp;diff=36817"/>
		<updated>2013-08-02T09:23:57Z</updated>

		<summary type="html">&lt;p&gt;XXMADEXx: Created page with &amp;quot;{{Useful Function}} __NOTOC__ This is a function that will create a rectangle outline with dx lines.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxDrawLinedRectangle( float x, float y, float w...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&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 dxDrawLinedFrame ( x, y, width, height, color, _width, postGUI )&lt;br /&gt;
	local _width = _width or 1&lt;br /&gt;
	local postGUI = postGUI or false&lt;br /&gt;
	dxDrawLine ( x, y, x+width, y, color, _width, postGUI ) -- Top Arross&lt;br /&gt;
	dxDrawLine ( x, y, x, y+height, color, _width, post ) -- Left Down&lt;br /&gt;
	dxDrawLine ( x, y+height, x+width, y+height, color, _width, postGUI ) --Bottom Across&lt;br /&gt;
	return dxDrawLine ( x+width, y, x+width, y+height, color, _width, postGUI ) -- Right Down &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 white rectangle in the middle of the GTA world for no reason&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;
        dxDrawLinedFrame ( 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>XXMADEXx</name></author>
	</entry>
</feed>