<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DxText?action=history&amp;feed=atom</id>
	<title>DxText - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DxText?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxText&amp;action=history"/>
	<updated>2026-10-29T03:26:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.1</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxText&amp;diff=75953&amp;oldid=prev</id>
		<title>OfficialMr3b: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxText&amp;diff=75953&amp;oldid=prev"/>
		<updated>2023-01-05T17:37:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:37, 5 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l47&quot;&gt;Line 47:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function drawStuff()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function drawStuff()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	dxText(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;630&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;446&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;106&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;26&lt;/del&gt;, tocolor(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;51&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;51&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;51&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;255&lt;/del&gt;), false)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	dxText(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;Hello this is Mr3b&quot;&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;468&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;279&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;898, 307&lt;/ins&gt;, tocolor(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;254&lt;/ins&gt;)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, 1.00, &quot;default&quot;, &quot;center&quot;, &quot;center&quot;, false, false, false, false&lt;/ins&gt;, false)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;addEventHandler(&amp;quot;onClientRender&amp;quot;, root, drawStuff)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;addEventHandler(&amp;quot;onClientRender&amp;quot;, root, drawStuff)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff:1.41:old-75952:rev-75953:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>OfficialMr3b</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxText&amp;diff=75952&amp;oldid=prev</id>
		<title>OfficialMr3b: Created page with &quot;__NOTOC__  {{Client function}}  This function draws a dxText but it will make it relative.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dxDrawText ( string text, float leftX, float topY [, float rightX = leftX, float bottomY = topY, int color = white, float scaleXY = 1.0 [, float scaleY = 1.0 ],                   mixed font = &quot;default&quot;, string alignX = &quot;left&quot;, string alignY = &quot;top&quot;, bool clip = false, bool wordBreak = false,                   bool postGUI = false, bool...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxText&amp;diff=75952&amp;oldid=prev"/>
		<updated>2023-01-05T17:35:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}}  This function draws a dxText but it will make it relative.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dxDrawText ( string text, float leftX, float topY [, float rightX = leftX, float bottomY = topY, int color = white, float scaleXY = 1.0 [, float scaleY = 1.0 ],                   mixed font = &amp;quot;default&amp;quot;, string alignX = &amp;quot;left&amp;quot;, string alignY = &amp;quot;top&amp;quot;, bool clip = false, bool wordBreak = false,                   bool postGUI = false, bool...&amp;quot;&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 dxText but it will make it relative.&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 dxDrawText ( string text, float leftX, float topY [, float rightX = leftX, float bottomY = topY, int color = white, float scaleXY = 1.0 [, float scaleY = 1.0 ],&lt;br /&gt;
                  mixed font = &amp;quot;default&amp;quot;, string alignX = &amp;quot;left&amp;quot;, string alignY = &amp;quot;top&amp;quot;, bool clip = false, bool wordBreak = false,&lt;br /&gt;
                  bool postGUI = false, bool colorCoded = false, bool subPixelPositioning = false,&lt;br /&gt;
                  float fRotation = 0.0, float fRotationCenterX = 0.0, float fRotationCenterY = 0.0, float fLineSpacing = 0.0] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; the text to draw&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;leftX:&amp;#039;&amp;#039;&amp;#039; the absolute X coordinate of the top left corner of the text&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;topY:&amp;#039;&amp;#039;&amp;#039; the absolute Y coordinate of the top left corner of the text&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;rightX:&amp;#039;&amp;#039;&amp;#039; the absolute X coordinate of the right side of the text bounding box. Used for text aligning, clipping and word breaking.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;bottomY:&amp;#039;&amp;#039;&amp;#039; the absolute Y coordinate of the bottom side of the text bounding box. Used for text aligning, clipping and word breaking.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;color:&amp;#039;&amp;#039;&amp;#039; the color of the text, a value produced by [[tocolor]] or 0xAARRGGBB (AA = alpha, RR = red, GG = green, BB = blue).&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;scale:&amp;#039;&amp;#039;&amp;#039; the size of the text.&amp;#039;&amp;#039;&amp;#039;scale:&amp;#039;&amp;#039;&amp;#039; can (optionally) be specified as two floats. i.e. &amp;#039;&amp;#039;&amp;#039;scaleX, scaleY&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;font:&amp;#039;&amp;#039;&amp;#039; Either a custom [[DX font]] element or the name of a built-in DX font: &amp;#039;&amp;#039;&amp;#039;Note: Some fonts are incompatible with certain languages such as Arabic.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{DxFonts}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;alignX:&amp;#039;&amp;#039;&amp;#039; horizontal alignment of the text within the bounding box. Can be &amp;#039;&amp;#039;&amp;#039;&amp;quot;left&amp;quot;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;quot;center&amp;quot;&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;&amp;quot;right&amp;quot;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;alignY:&amp;#039;&amp;#039;&amp;#039; vertical alignment of the text within the bounding box. Can be &amp;#039;&amp;#039;&amp;#039;&amp;quot;top&amp;quot;&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;&amp;quot;center&amp;quot;&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;&amp;quot;bottom&amp;quot;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;clip:&amp;#039;&amp;#039;&amp;#039; if set to &amp;#039;&amp;#039;true&amp;#039;&amp;#039;, the parts of the text that don&amp;#039;t fit within the bounding box will be cut off.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;wordBreak:&amp;#039;&amp;#039;&amp;#039; if set to &amp;#039;&amp;#039;true&amp;#039;&amp;#039;, the text will wrap to a new line whenever it reaches the right side of the bounding box. If &amp;#039;&amp;#039;false&amp;#039;&amp;#039;, the text will always be completely on one line.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;postGUI:&amp;#039;&amp;#039;&amp;#039; A bool representing whether the text should be drawn on top of or behind any ingame GUI (rendered by CEGUI).&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;colorCoded:&amp;#039;&amp;#039;&amp;#039; Set to true to enable embedded #FFFFFF color codes. &amp;#039;&amp;#039;&amp;#039;Note: clip and wordBreak are forced false if this is set.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;subPixelPositioning:&amp;#039;&amp;#039;&amp;#039; A bool representing whether the text can be positioned sub-pixel-ly. Looks nicer for moving/scaling animations.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;fRotation:&amp;#039;&amp;#039;&amp;#039; Rotation&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;fRotationCenterX:&amp;#039;&amp;#039;&amp;#039; Rotation Origin X&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;fRotationCenterY:&amp;#039;&amp;#039;&amp;#039; Rotation Origin Y&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;fLineSpacing:&amp;#039;&amp;#039;&amp;#039; Distance in pixels between the lines of text, this can be a negative number, works only when &amp;#039;&amp;#039;&amp;#039;colorCoded&amp;#039;&amp;#039;&amp;#039; is set to true&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if successful, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise.&lt;br /&gt;
&lt;br /&gt;
==Resource==&lt;br /&gt;
[https://wiki.multitheftauto.com/wiki/Resource:RDX RDX]&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
loadstring(exports.rdx:import())()&lt;br /&gt;
&lt;br /&gt;
function drawStuff()&lt;br /&gt;
	dxText(630, 446, 106, 26, tocolor(51, 51, 51, 255), false)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;, root, drawStuff)&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;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>OfficialMr3b</name></author>
	</entry>
</feed>