<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/Legacy/DxDrawLine3D?action=history&amp;feed=atom</id>
	<title>Legacy/DxDrawLine3D - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/Legacy/DxDrawLine3D?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Legacy/DxDrawLine3D&amp;action=history"/>
	<updated>2026-05-13T00:10:57Z</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=Legacy/DxDrawLine3D&amp;diff=79449&amp;oldid=prev</id>
		<title>FileEX: FileEX moved page DxDrawLine3D legacy to Legacy/DxDrawLine3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Legacy/DxDrawLine3D&amp;diff=79449&amp;oldid=prev"/>
		<updated>2024-05-27T12:49:23Z</updated>

		<summary type="html">&lt;p&gt;FileEX moved page &lt;a href=&quot;/wiki/DxDrawLine3D_legacy&quot; class=&quot;mw-redirect&quot; title=&quot;DxDrawLine3D legacy&quot;&gt;DxDrawLine3D legacy&lt;/a&gt; to &lt;a href=&quot;/wiki/Legacy/DxDrawLine3D&quot; title=&quot;Legacy/DxDrawLine3D&quot;&gt;Legacy/DxDrawLine3D&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:49, 27 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>FileEX</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Legacy/DxDrawLine3D&amp;diff=79448&amp;oldid=prev</id>
		<title>FileEX: Legacy versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Legacy/DxDrawLine3D&amp;diff=79448&amp;oldid=prev"/>
		<updated>2024-05-27T12:48:10Z</updated>

		<summary type="html">&lt;p&gt;Legacy versions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
This function draws a 3D line between two points in the 3D world - rendered for '''one''' frame.  This should be used in conjunction with [[onClientRender]] in order to display continuously.&lt;br /&gt;
&lt;br /&gt;
{{Note|This page only contains legacy implementations. For current implementation check [[dxDrawLine3D]]}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Deprecated items|3.0159|1.5.9|&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxDrawLine3D ( float startX, float startY, float startZ, float endX, float endY, float endZ [, int color = 0xFFFFFFFF, float width = 1.0, bool postGUI = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''startX:''' The start X position of the 3D line, representing a coordinate in the GTA world.&lt;br /&gt;
* '''startY:''' The start Y position of the 3D line, representing a coordinate in the GTA world.&lt;br /&gt;
* '''startZ:''' The start Z position of the 3D line, representing a coordinate in the GTA world.&lt;br /&gt;
* '''endX:''' The end X position of the 3D line, representing a coordinate in the GTA world.&lt;br /&gt;
* '''endY:''' The end Y position of the 3D line, representing a coordinate in the GTA world.&lt;br /&gt;
* '''endZ:''' The end Z position of the 3D line, representing a coordinate in the GTA world.&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''color:''' An integer of the hex color, produced using [[tocolor]] or 0xAARRGGBB.&lt;br /&gt;
* '''width:''' The width/thickness of the line&lt;br /&gt;
* '''postGUI:''' A bool representing whether the line should be drawn on top of or behind any ingame GUI (rendered by CEGUI).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the operation was successful, ''false'' otherwise.&lt;br /&gt;
|22465}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This is a small example of creating 3D Line / &amp;quot;Rope&amp;quot; between vehicle and player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function makeLineAppear()&lt;br /&gt;
	testVehicle = createVehicle ( 411, 0, 0, 5 ) -- Create our test vehicle.&lt;br /&gt;
	addEventHandler(&amp;quot;onClientRender&amp;quot;, root, createLine)        -- onClientRender keeps the 3D Line visible.&lt;br /&gt;
end&lt;br /&gt;
function createLine ( )&lt;br /&gt;
	x1, y1, z1 = getElementPosition ( testVehicle )                       -- Get test vehicles position.&lt;br /&gt;
	x2, y2, z2 = getElementPosition ( localPlayer )                  -- Get local players position.&lt;br /&gt;
	dxDrawLine3D ( x1, y1, z1, x2, y2, z2, tocolor ( 0, 255, 0, 230 ), 2) -- Create 3D Line between test vehicle and local player.&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;line&amp;quot;, makeLineAppear)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>FileEX</name></author>
	</entry>
</feed>