<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DxDrawBordered3DLine?action=history&amp;feed=atom</id>
	<title>DxDrawBordered3DLine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DxDrawBordered3DLine?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawBordered3DLine&amp;action=history"/>
	<updated>2026-04-03T23:08:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawBordered3DLine&amp;diff=75630&amp;oldid=prev</id>
		<title>Snow-Man: Created page with &quot;{{Useful Function}} This function creates a bordered area with 3D dx lines.   * '''NOTE:''' this is made to be only client side  &lt;syntaxhighlight lang=&quot;lua&quot;&gt;bool dxDrawBordered3DLine(float startX, float startY, float startZ, float endX, float endY, float endZ, color, width) &lt;/syntaxhighlight&gt;    ===Required Arguments=== * '''startX/startY/startZ:'''The start position of the 3D Line, representing a coordinate in the GTA world.  * '''endX/endY/endZ:'''The end position of t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawBordered3DLine&amp;diff=75630&amp;oldid=prev"/>
		<updated>2022-10-27T16:35:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Useful Function}} This function creates a bordered area with 3D dx lines.   * &amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; this is made to be only client side  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxDrawBordered3DLine(float startX, float startY, float startZ, float endX, float endY, float endZ, color, width) &amp;lt;/syntaxhighlight&amp;gt;    ===Required Arguments=== * &amp;#039;&amp;#039;&amp;#039;startX/startY/startZ:&amp;#039;&amp;#039;&amp;#039;The start position of the 3D Line, representing a coordinate in the GTA world.  * &amp;#039;&amp;#039;&amp;#039;endX/endY/endZ:&amp;#039;&amp;#039;&amp;#039;The end position of t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Useful Function}}&lt;br /&gt;
This function creates a bordered area with 3D dx lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''NOTE:''' this is made to be only client side&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool dxDrawBordered3DLine(float startX, float startY, float startZ, float endX, float endY, float endZ, color, width) &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''startX/startY/startZ:'''The start position of the 3D Line, representing a coordinate in the GTA world.&lt;br /&gt;
&lt;br /&gt;
* '''endX/endY/endZ:'''The end position of the 3D Line, representing a coordinate in the GTA world.&lt;br /&gt;
* '''color:''' the hex color of the line (red, green, blue, alpha)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Optional Argument===&lt;br /&gt;
* '''width:''' represents the width of the line &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;
&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 dxDrawBordered3DLine(x, y, z, w, h, d, color, width)&lt;br /&gt;
	width = width or 1&lt;br /&gt;
	local w, h = w-x, h-y&lt;br /&gt;
	dxDrawLine3D(x, y,z, x+w,y, d, color, width)--up&lt;br /&gt;
	dxDrawLine3D(x, y,z, x,y+h, d, color, width)--left&lt;br /&gt;
	dxDrawLine3D(x, y+h, z, x+w, y+h, d, color, width)-- bottom&lt;br /&gt;
	dxDrawLine3D(x+w, y, z, x+w, y+h,d, color, width)--right&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;
&lt;br /&gt;
==Example==&lt;br /&gt;
this draws 3D line around Restricted Area&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local x, y,z, w,h, d = 96.683, 1798.932, 17.640625 , 285.30496, 1940.2816, 17.640625&lt;br /&gt;
&lt;br /&gt;
local radar = createRadarArea( x, y, w, h, 50, 255, 50, 100)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, &lt;br /&gt;
	function()&lt;br /&gt;
		dxDrawBordered3DLine(x, y, z-0.5, w,h, d-0.5,tocolor(255, 255, 0, 150), 10)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Author'': Snow-Man&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Snow-Man</name></author>
	</entry>
</feed>