<?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=Sybellex</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=Sybellex"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Sybellex"/>
	<updated>2026-05-14T17:03:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82572</id>
		<title>Astrath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82572"/>
		<updated>2025-10-22T20:25:39Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Astrath =&lt;br /&gt;
&lt;br /&gt;
''Astrath'' is a DirectX framework for MTA:SA developed by '''Magath'''.  &lt;br /&gt;
It provides tools to create custom interfaces, animations, and other DX-based visuals.&lt;br /&gt;
&lt;br /&gt;
== Client Functions ==&lt;br /&gt;
* [[Astrath:createWindow]] – Creates a new DX-based window element&lt;br /&gt;
* [[Astrath:createButton]] – Creates a DX-based button element&lt;br /&gt;
* [[Astrath:createCheckBox]] – Creates a DX-based checkbox element&lt;br /&gt;
* [[Astrath:createComboBox]] – Creates a DX-based combobox element&lt;br /&gt;
* [[Astrath:createEditBox]] – Creates a DX-based editbox element&lt;br /&gt;
* [[Astrath:createGridList]] – Creates a DX-based gridlist element&lt;br /&gt;
* [[Astrath:createHidden]] – Creates a hidden DX element (used as a parent container)&lt;br /&gt;
* [[Astrath:createImage]] – Draws a DX-based image&lt;br /&gt;
* [[Astrath:createLabel]] – Creates a DX-based label element&lt;br /&gt;
* [[Astrath:createMemo]] – Creates a DX-based multi-line text element&lt;br /&gt;
* [[Astrath:createRadio]] – Creates a DX-based radio button element&lt;br /&gt;
* [[Astrath:createShape]] – Creates a drawable rectangle element (can be used as parent)&lt;br /&gt;
* [[Astrath:createTab]] – Creates a DX-based tab element&lt;br /&gt;
* [[Astrath:createTabPanel]] – Creates a container for tabs&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[dxDrawImage]]&lt;br /&gt;
* [[dxDrawText]]&lt;br /&gt;
* [[onClientRender]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82571</id>
		<title>Astrath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82571"/>
		<updated>2025-10-22T20:25:25Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Astrath =&lt;br /&gt;
&lt;br /&gt;
''Astrath'' is a DirectX framework for MTA:SA developed by '''Magath'''.  &lt;br /&gt;
It provides tools to create custom interfaces, animations, and other DX-based visuals.&lt;br /&gt;
&lt;br /&gt;
== Client Functions ==&lt;br /&gt;
* [[Astrath:createWindow]] – Creates a new DX-based window element&lt;br /&gt;
* [[Astrath:createButton]] – Creates a DX-based button element&lt;br /&gt;
* [[Astrath:createCheckBox]] – Creates a DX-based checkbox element&lt;br /&gt;
* [[Astrath:createComboBox]] – Creates a DX-based combobox element&lt;br /&gt;
* [[Astrath:createEditBox]] – Creates a DX-based editbox element&lt;br /&gt;
* [[Astrath:createGridList]] – Creates a DX-based gridlist element&lt;br /&gt;
* [[Astrath:createHidden]] – Creates a hidden DX element (used as a parent container)&lt;br /&gt;
* [[Astrath:createImage]] – Draws a DX-based image&lt;br /&gt;
* [[Astrath:createLabel]] – Creates a DX-based label element&lt;br /&gt;
* [[Astrath:createMemo]] – Creates a DX-based multi-line text element&lt;br /&gt;
* [[Astrath:createRadio]] – Creates a DX-based radio button element&lt;br /&gt;
* [[Astrath:createShape]] – Creates a drawable rectangle element (can be used as parent)&lt;br /&gt;
* [[Astrath:createTab]] – Creates a DX-based tab element&lt;br /&gt;
* [[Astrath:createTabPanel]] – Creates a container for tabs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[dxDrawImage]]&lt;br /&gt;
* [[dxDrawText]]&lt;br /&gt;
* [[onClientRender]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82570</id>
		<title>Astrath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82570"/>
		<updated>2025-10-22T20:25:04Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Astrath =&lt;br /&gt;
&lt;br /&gt;
''Astrath'' is a DirectX framework for MTA:SA developed by '''Magath'''.  &lt;br /&gt;
It provides tools to create custom interfaces, animations, and other DX-based visuals.&lt;br /&gt;
&lt;br /&gt;
== Client Functions ==&lt;br /&gt;
* [[Astrath:createWindow]] – Creates a new DX-based window element&lt;br /&gt;
* [[Astrath:createButton]] – Creates a DX-based button element&lt;br /&gt;
* [[Astrath:createCheckBox]] – Creates a DX-based checkbox element&lt;br /&gt;
* [[Astrath:createComboBox]] – Creates a DX-based combobox element&lt;br /&gt;
* [[Astrath:createEditBox]] – Creates a DX-based editbox element&lt;br /&gt;
* [[Astrath:createGridList]] – Creates a DX-based gridlist element&lt;br /&gt;
* [[Astrath:createHidden]] – Creates a hidden DX element (used as a parent container)&lt;br /&gt;
* [[Astrath:createImage]] – Draws a DX-based image&lt;br /&gt;
* [[Astrath:createLabel]] – Creates a DX-based label element&lt;br /&gt;
* [[Astrath:createMemo]] – Creates a DX-based multi-line text element&lt;br /&gt;
* [[Astrath:createRadio]] – Creates a DX-based radio button element&lt;br /&gt;
* [[Astrath:createShape]] – Creates a drawable rectangle element (can be used as parent)&lt;br /&gt;
* [[Astrath:createTab]] – Creates a DX-based tab element&lt;br /&gt;
* [[Astrath:createTabPanel]] – Creates a container for tabs&lt;br /&gt;
&lt;br /&gt;
== Server Functions ==&lt;br /&gt;
* [[Astrath:loadResources]] – Load resources or assets on server&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[dxDrawImage]]&lt;br /&gt;
* [[dxDrawText]]&lt;br /&gt;
* [[onClientRender]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createTab&amp;diff=82569</id>
		<title>Astrath:createTab</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createTab&amp;diff=82569"/>
		<updated>2025-10-22T20:24:26Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxTab:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxTab:new ( element parent, string text, table color, table hoverColor, table activeColor, table tabColor )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new tab element inside a `DxTabPanel`. Tabs are linked to a panel and their positions are automatically managed according to the panel layout. Only usable with a valid `DxTabPanel` parent.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* parent (element) – A `DxTabPanel` element where this tab will be attached (required).&lt;br /&gt;
* text (string) – The text to display on the tab (optional, default: 'tab').&lt;br /&gt;
* color (table / tocolor) – The main color of the tab (optional, defaults to parent's color).&lt;br /&gt;
* hoverColor (table / tocolor) – Color when hovering (optional, defaults to parent's hoverColor).&lt;br /&gt;
* activeColor (table / tocolor) – Color when tab is active (optional, defaults to parent's activeColor).&lt;br /&gt;
* tabColor (table / tocolor) – Base color for inactive tabs (optional, defaults to parent's tabColor).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created `DxTab` element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the tab and removes it from the parent panel.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the tab and triggers reordering in the panel.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the tab.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effects for this tab.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the tab's color. Type can be 'mainColor', 'hoverColor', 'tabColor', 'activeColor'.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Crear un tab panel&lt;br /&gt;
local tabPanel = DxTabPanel:new(100, 100, 400, 300)&lt;br /&gt;
tabPanel:setVisible(true)&lt;br /&gt;
&lt;br /&gt;
-- Agregar tabs&lt;br /&gt;
local tab1 = DxTab:new(tabPanel, &amp;quot;Tab 1&amp;quot;)&lt;br /&gt;
local tab2 = DxTab:new(tabPanel, &amp;quot;Tab 2&amp;quot;, tocolor(200,0,0,255))&lt;br /&gt;
&lt;br /&gt;
-- Establecer tab seleccionado&lt;br /&gt;
tabPanel:setSelected(tab1)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[DxTabPanel:new]] – The panel container required for tabs&lt;br /&gt;
* [[onClientRender]] – Event used to draw DX elements each frame&lt;br /&gt;
* [[adjustAlpha]] – Function used internally to adjust tab opacity&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createTab&amp;diff=82568</id>
		<title>Astrath:createTab</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createTab&amp;diff=82568"/>
		<updated>2025-10-22T20:23:32Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxTab:new =  {{Client function}} {{FuncDef|element DxTab:new ( element parent, string text, table color, table hoverColor, table activeColor, table tabColor )}}  '''Description:''' Creates a new tab element inside a `DxTabPanel`. Tabs are linked to a panel and their positions are automatically managed according to the panel layout. Only usable with a valid `DxTabPanel` parent.  '''Parameters:''' * parent (element) – A `DxTabPanel` element where this tab will be attac...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxTab:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxTab:new ( element parent, string text, table color, table hoverColor, table activeColor, table tabColor )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new tab element inside a `DxTabPanel`. Tabs are linked to a panel and their positions are automatically managed according to the panel layout. Only usable with a valid `DxTabPanel` parent.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* parent (element) – A `DxTabPanel` element where this tab will be attached (required).&lt;br /&gt;
* text (string) – The text to display on the tab (optional, default: 'tab').&lt;br /&gt;
* color (table / tocolor) – The main color of the tab (optional, defaults to parent's color).&lt;br /&gt;
* hoverColor (table / tocolor) – Color when hovering (optional, defaults to parent's hoverColor).&lt;br /&gt;
* activeColor (table / tocolor) – Color when tab is active (optional, defaults to parent's activeColor).&lt;br /&gt;
* tabColor (table / tocolor) – Base color for inactive tabs (optional, defaults to parent's tabColor).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created `DxTab` element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the tab and removes it from the parent panel.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the tab and triggers reordering in the panel.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the tab.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effects for this tab.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the tab's color. Type can be 'mainColor', 'hoverColor', 'tabColor', 'activeColor'.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Crear un tab panel&lt;br /&gt;
local tabPanel = DxTabPanel:new(100, 100, 400, 300)&lt;br /&gt;
tabPanel:setVisible(true)&lt;br /&gt;
&lt;br /&gt;
-- Agregar tabs&lt;br /&gt;
local tab1 = DxTab:new(tabPanel, &amp;quot;Tab 1&amp;quot;)&lt;br /&gt;
local tab2 = DxTab:new(tabPanel, &amp;quot;Tab 2&amp;quot;, tocolor(200,0,0,255))&lt;br /&gt;
&lt;br /&gt;
-- Establecer tab seleccionado&lt;br /&gt;
tabPanel:setSelected(tab1)&lt;br /&gt;
&lt;br /&gt;
-- Dibujar panel y tabs en el evento onClientRender&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;, root, function()&lt;br /&gt;
    tabPanel:draw()&lt;br /&gt;
    for i, tab in ipairs(tabPanel.children) do&lt;br /&gt;
        tab:draw()&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[DxTabPanel:new]] – The panel container required for tabs&lt;br /&gt;
* [[onClientRender]] – Event used to draw DX elements each frame&lt;br /&gt;
* [[adjustAlpha]] – Function used internally to adjust tab opacity&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createTabPanel&amp;diff=82567</id>
		<title>Astrath:createTabPanel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createTabPanel&amp;diff=82567"/>
		<updated>2025-10-22T20:19:50Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxTabPanel:new =  {{Client function}} {{FuncDef|element DxTabPanel:new ( float posX, float posY, float width, float height, element parent, boolean relative, table color, table tabColor, table activeColor, table hoverColor, string font, float fontsize, string style, string tabStyle )}}  '''Description:''' Creates a new tab panel DX element. A tab panel can hold multiple tabs and manage their selection and hover states. Automatically adjusts child tab positions and size...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxTabPanel:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxTabPanel:new ( float posX, float posY, float width, float height, element parent, boolean relative, table color, table tabColor, table activeColor, table hoverColor, string font, float fontsize, string style, string tabStyle )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new tab panel DX element. A tab panel can hold multiple tabs and manage their selection and hover states. Automatically adjusts child tab positions and sizes.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* posX, posY (float) – Position of the tab panel on screen.&lt;br /&gt;
* width, height (float) – Dimensions of the tab panel.&lt;br /&gt;
* parent (element) – Parent DX element to attach this panel to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* color (table / tocolor) – Main background color of the panel (optional, default: dark grey).&lt;br /&gt;
* tabColor (table / tocolor) – Default color for tabs (optional).&lt;br /&gt;
* activeColor (table / tocolor) – Color for the active tab (optional).&lt;br /&gt;
* hoverColor (table / tocolor) – Hover color for tabs (optional).&lt;br /&gt;
* font (string) – Font used for tab text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size for tab text (optional, default: 1).&lt;br /&gt;
* style (string) – DX style used for the panel (optional).&lt;br /&gt;
* tabStyle (string) – DX style used for tabs (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxTabPanel element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the tab panel and all child tabs and elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the tab panel.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the tab panel for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addTab(text) || Adds a new tab with the given text to the panel.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelected() || Returns the currently selected tab element.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelected(tabElement) || Sets a specific tab as selected.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect for tabs.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets colors for the panel or tabs. Type can be 'mainColor', 'hoverColor', 'tabColor', 'activeColor'.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local tabPanel = DxTabPanel:new(100, 100, 400, 300)&lt;br /&gt;
tabPanel:setVisible(true)&lt;br /&gt;
tabPanel:addTab(&amp;quot;Tab 1&amp;quot;)&lt;br /&gt;
tabPanel:addTab(&amp;quot;Tab 2&amp;quot;)&lt;br /&gt;
tabPanel:draw()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[DxTab:new]] – Page for individual tab elements&lt;br /&gt;
* [[DxWindow:new]] – For window parent reference&lt;br /&gt;
* [[onClientRender]] – Event to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createShape&amp;diff=82566</id>
		<title>Astrath:createShape</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createShape&amp;diff=82566"/>
		<updated>2025-10-22T20:17:10Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxShape:new =  {{Client function}} {{FuncDef|element DxShape:new ( float posX, float posY, float width, float height, element parent, boolean relative, table color )}}  '''Description:''' Creates a new DX-based shape element. Shapes can have custom colors, hover effects, and rounded corners. Each shape instance is automatically registered in the DX library.  '''Parameters:''' * posX, posY (float) – Position on screen. * width, height (float) – Size of the shape. *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxShape:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxShape:new ( float posX, float posY, float width, float height, element parent, boolean relative, table color )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based shape element. Shapes can have custom colors, hover effects, and rounded corners. Each shape instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the shape.&lt;br /&gt;
* parent (element) – Parent DX element to attach this shape to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* color (table / tocolor) – Main color of the shape (optional, default: grey).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxShape element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the shape and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the shape.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the shape for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets main or hover color of the shape.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myShape = DxShape:new(100, 100, 200, 150)&lt;br /&gt;
myShape:setVisible(true)&lt;br /&gt;
myShape:setHoverable(true)&lt;br /&gt;
myShape:setColor(150, 150, 150, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
myShape:draw()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createRadio&amp;diff=82565</id>
		<title>Astrath:createRadio</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createRadio&amp;diff=82565"/>
		<updated>2025-10-22T20:15:27Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxRadio:new =  {{Client function}} {{FuncDef|element DxRadio:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string key, string font, float fontsize )}}  '''Description:''' Creates a new DX-based radio button element. Radio buttons are single-select controls grouped by a key, allowing only one selection per group. Each radio instance is automatically registered in the DX library.  '''Parameters:''' * text (string)...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxRadio:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxRadio:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string key, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based radio button element. Radio buttons are single-select controls grouped by a key, allowing only one selection per group. Each radio instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – Label text for the radio button (optional, default: &amp;quot;radiobutton&amp;quot;).&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the radio button.&lt;br /&gt;
* parent (element) – Parent DX element to attach this radio button to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* key (string) – Group key to identify radio button group (optional, default: &amp;quot;Default&amp;quot;).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxRadio element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the radio element and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the radio button.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the radio button for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelected() || Selects this radio button and deselects others in the same group.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelected() || Returns whether this radio button is selected.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets main, hover, or selected color of the radio button.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myRadio = DxRadio:new(&amp;quot;Option 1&amp;quot;, 100, 100, 150, 30)&lt;br /&gt;
&lt;br /&gt;
myRadio:setVisible(true)&lt;br /&gt;
myRadio:setHoverable(true)&lt;br /&gt;
myRadio:setColor(200, 200, 200, 200, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
myRadio:setColor(30, 30, 30, 255, &amp;quot;selectColor&amp;quot;)&lt;br /&gt;
myRadio:setSelected()&lt;br /&gt;
myRadio:draw()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createMemo&amp;diff=82564</id>
		<title>Astrath:createMemo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createMemo&amp;diff=82564"/>
		<updated>2025-10-22T20:14:10Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxMemo:new =  {{Client function}} {{FuncDef|element DxMemo:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize )}}  '''Description:''' Creates a new DX-based memo element. Memos are multi-line text boxes that support scrolling, cursor positioning, text input, custom fonts, colors, and read-only mode. Each memo instance is automatically registered in the DX library.  '''Parameters:''' * text...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxMemo:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxMemo:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based memo element. Memos are multi-line text boxes that support scrolling, cursor positioning, text input, custom fonts, colors, and read-only mode. Each memo instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – Initial text content for the memo (optional).&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the memo.&lt;br /&gt;
* parent (element) – Parent DX element to attach this memo to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* font (string) – Font used for the text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxMemo element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the memo element and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the memo.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the memo for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the memo text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getText() || Returns the current memo text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:clear() || Clears all text and resets the cursor.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setReadOnly(boolean) || Enables or disables read-only mode.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getReadOnly() || Returns whether the memo is read-only.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main or hover background color.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myMemo = DxMemo:new(&amp;quot;Hello World&amp;quot;, 100, 100, 300, 200)&lt;br /&gt;
&lt;br /&gt;
myMemo:setVisible(true)&lt;br /&gt;
myMemo:setReadOnly(false)&lt;br /&gt;
myMemo:setHoverable(true)&lt;br /&gt;
myMemo:setColor(255, 255, 255, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
myMemo:setText(&amp;quot;Welcome to MTA DX Memo&amp;quot;)&lt;br /&gt;
myMemo:draw()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createLabel&amp;diff=82563</id>
		<title>Astrath:createLabel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createLabel&amp;diff=82563"/>
		<updated>2025-10-22T20:12:06Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxLabel:new =  {{Client function}} {{FuncDef|element DxLabel:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize, string horizontalAlign, string verticalAlign )}}  '''Description:''' Creates a new DX-based label element. Labels display text, support parent-relative positioning, custom fonts, colors, alignment, and optional hover effects. Each label instance is automatically registered in th...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxLabel:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxLabel:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize, string horizontalAlign, string verticalAlign )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based label element. Labels display text, support parent-relative positioning, custom fonts, colors, alignment, and optional hover effects. Each label instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – Text to display in the label.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the label.&lt;br /&gt;
* parent (element) – Parent DX element to attach this label to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* font (string) – Font used for the text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* horizontalAlign (string) – Horizontal alignment (&amp;quot;left&amp;quot;, &amp;quot;center&amp;quot;, &amp;quot;right&amp;quot;, optional, default: &amp;quot;center&amp;quot;).&lt;br /&gt;
* verticalAlign (string) – Vertical alignment (&amp;quot;top&amp;quot;, &amp;quot;center&amp;quot;, &amp;quot;bottom&amp;quot;, optional, default: &amp;quot;center&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxLabel element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the label element and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the label.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the label for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the label text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getText() || Returns the current label text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setFont(string) || Changes the label font.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main or hover text color.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHorizontalAlign(string) || Sets horizontal alignment of the text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVerticalAlign(string) || Sets vertical alignment of the text.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myLabel = DxLabel:new(&amp;quot;Hello World&amp;quot;, 100, 100, 200, 50)&lt;br /&gt;
&lt;br /&gt;
myLabel:setVisible(true)&lt;br /&gt;
myLabel:setHoverable(true)&lt;br /&gt;
myLabel:setText(&amp;quot;Welcome&amp;quot;)&lt;br /&gt;
myLabel:setColor(255, 200, 0, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
myLabel:setHorizontalAlign(&amp;quot;center&amp;quot;)&lt;br /&gt;
myLabel:setVerticalAlign(&amp;quot;center&amp;quot;)&lt;br /&gt;
myLabel:draw()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82562</id>
		<title>Astrath:createImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82562"/>
		<updated>2025-10-22T20:10:33Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxImage:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxImage:new ( string path, float posX, float posY, float width, float height, element parent, boolean relative )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based image element. Images can be attached to parent elements, support transparency, custom styles, and optional parent-relative positioning. Each image instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* path (string) – Path to the image file. Must exist.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the image.&lt;br /&gt;
* parent (element) – Parent DX element to attach this image to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxImage element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the image element and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the image.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the image for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setAlpha(number) || Sets the image transparency (0–255).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myImage = DxImage:new(&amp;quot;images/logo.png&amp;quot;, 100, 100, 200, 150)&lt;br /&gt;
&lt;br /&gt;
myImage:setVisible(true)&lt;br /&gt;
myImage:setAlpha(200)&lt;br /&gt;
myImage:setPath(&amp;quot;images/new_logo.png&amp;quot;)&lt;br /&gt;
myImage:draw()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82561</id>
		<title>Astrath:createImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82561"/>
		<updated>2025-10-22T20:03:15Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxImage:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxImage:new ( string path, float posX, float posY, float width, float height, element parent, boolean relative )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based image element. Images can be attached to parent elements, support transparency, and custom styles. Each image instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
&lt;br /&gt;
path (string) – Path to the image file. Must exist.&lt;br /&gt;
&lt;br /&gt;
posX, posY (float) – Position on screen.&lt;br /&gt;
&lt;br /&gt;
width, height (float) – Size of the image.&lt;br /&gt;
&lt;br /&gt;
parent (element) – Parent DX element to attach this image to (optional).&lt;br /&gt;
&lt;br /&gt;
relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxImage element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
! Method !! Description&lt;br /&gt;
Ath:destroy()&lt;br /&gt;
-&lt;br /&gt;
Ath:setVisible(boolean)&lt;br /&gt;
-&lt;br /&gt;
Ath:setEnabled(boolean)&lt;br /&gt;
-&lt;br /&gt;
Ath:setAlpha(int)&lt;br /&gt;
-&lt;br /&gt;
Ath:setPath(string)&lt;br /&gt;
-&lt;br /&gt;
Ath:draw()&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create an image at position 100x100 with size 200x150&lt;br /&gt;
local myImage = DxImage:new(&amp;quot;images/logo.png&amp;quot;, 100, 100, 200, 150)&lt;br /&gt;
&lt;br /&gt;
-- Show the image and set transparency&lt;br /&gt;
myImage:setVisible(true)&lt;br /&gt;
myImage:setAlpha(200)&lt;br /&gt;
&lt;br /&gt;
-- Change the image path&lt;br /&gt;
myImage:setPath(&amp;quot;images/new_logo.png&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- Draw the image&lt;br /&gt;
myImage:draw()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
&lt;br /&gt;
[[Astrath]] – Main library page&lt;br /&gt;
&lt;br /&gt;
[[DxWindow:new]] – Page for window element reference&lt;br /&gt;
&lt;br /&gt;
[[DxLabel:new]] – Page for label element reference&lt;br /&gt;
&lt;br /&gt;
[[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82560</id>
		<title>Astrath:createImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82560"/>
		<updated>2025-10-22T20:01:56Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== DxImage:new ==&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DxImage element, which displays a static image on the screen. Uses table-based syntax with metatable.&lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local image = DxImage:new(path, posX, posY, width, height, parent, relative)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
path      - string - Path to the image file (must exist)&lt;br /&gt;
posX      - float  - X position on screen&lt;br /&gt;
posY      - float  - Y position on screen&lt;br /&gt;
width     - float  - Width of the image&lt;br /&gt;
height    - float  - Height of the image&lt;br /&gt;
parent    - element (optional) - Parent DX element&lt;br /&gt;
relative  - boolean (optional) - Whether position is relative to parent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Return Value:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
element - table - The newly created DxImage element&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
image:destroy()            - Destroys the element and all its children&lt;br /&gt;
image:setVisible(boolean)  - Sets the visibility&lt;br /&gt;
image:setEnabled(boolean)  - Enables or disables the element&lt;br /&gt;
image:setAlpha(int)        - Sets transparency (0–255)&lt;br /&gt;
image:setPath(string)      - Changes the image file path (must exist)&lt;br /&gt;
image:draw()               - Draws the image using its defined style&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local img = DxImage:new(&amp;quot;images/logo.png&amp;quot;, 100, 100, 200, 150)&lt;br /&gt;
img:setAlpha(200)&lt;br /&gt;
img:setVisible(true)&lt;br /&gt;
img:setPath(&amp;quot;images/new_logo.png&amp;quot;)&lt;br /&gt;
img:draw()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See Also:'''&lt;br /&gt;
DxWindow:new, DxLabel:new, DxButton:new&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82559</id>
		<title>Astrath:createImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createImage&amp;diff=82559"/>
		<updated>2025-10-22T19:59:06Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxImage:new =   {{Client function}} {{FuncDef|element DxImage:new ( string path, float posX, float posY, float width, float height, element parent, boolean relative )}}  '''Description:''' Creates a DX image element. An image element displays a static image from a file on the screen.  '''Parameters:'''  path (string) – Path to the image file (must exist).  posX, posY (float) – Position on screen.  width, height (float) – Size of the image.  parent (element) – P...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxImage:new =&lt;br /&gt;
 &lt;br /&gt;
{{Client function}} {{FuncDef|element DxImage:new ( string path, float posX, float posY, float width, float height, element parent, boolean relative )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a DX image element. An image element displays a static image from a file on the screen.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
&lt;br /&gt;
path (string) – Path to the image file (must exist).&lt;br /&gt;
&lt;br /&gt;
posX, posY (float) – Position on screen.&lt;br /&gt;
&lt;br /&gt;
width, height (float) – Size of the image.&lt;br /&gt;
&lt;br /&gt;
parent (element) – Parent DX element (optional).&lt;br /&gt;
&lt;br /&gt;
relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxImage element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
! Method !! Description&lt;br /&gt;
Ath:setVisible(boolean)&lt;br /&gt;
-&lt;br /&gt;
Ath:setEnabled(boolean)&lt;br /&gt;
-&lt;br /&gt;
Ath:setAlpha(int)&lt;br /&gt;
-&lt;br /&gt;
Ath:setPath(string path)&lt;br /&gt;
-&lt;br /&gt;
Ath:destroy()&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local img = DxImage:new(&amp;quot;images/logo.png&amp;quot;, 100, 100, 200, 150)&lt;br /&gt;
img:setAlpha(200)&lt;br /&gt;
img:setVisible(true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createHidden&amp;diff=82558</id>
		<title>Astrath:createHidden</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createHidden&amp;diff=82558"/>
		<updated>2025-10-22T19:56:22Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxHidden:new =   {{Client function}} {{FuncDef|element DxHidden:new ( float posX, float posY, float width, float height, element parent, boolean relative )}}  '''Description:''' Creates a hidden DX element. Hidden elements are not drawn and can be used as containers or invisible parents for other DX elements. They can store position and size information and manage child elements.  '''Parameters:''' * posX, posY (float) – Position on screen. * width, height (float)...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxHidden:new =&lt;br /&gt;
 &lt;br /&gt;
{{Client function}} {{FuncDef|element DxHidden:new ( float posX, float posY, float width, float height, element parent, boolean relative )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a hidden DX element. Hidden elements are not drawn and can be used as containers or invisible parents for other DX elements. They can store position and size information and manage child elements.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the hidden element.&lt;br /&gt;
* parent (element) – Parent DX element to attach this hidden element to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxHidden element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the hidden element and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Sets the visibility state of the hidden element (mostly for management, as hidden elements are not drawn).&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the element for internal logic or child interaction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a hidden element at position 100x100 with size 200x200&lt;br /&gt;
local hidden = DxHidden:new(100, 100, 200, 200)&lt;br /&gt;
&lt;br /&gt;
-- Set it invisible (default, but can be toggled)&lt;br /&gt;
hidden:setVisible(false)&lt;br /&gt;
&lt;br /&gt;
-- Enable it for internal logic&lt;br /&gt;
hidden:setEnabled(true)&lt;br /&gt;
&lt;br /&gt;
-- Use as parent for other DX elements&lt;br /&gt;
local btn = DxButton:new(&amp;quot;Click Me&amp;quot;, 10, 10, 100, 40, hidden)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Example of visible container element&lt;br /&gt;
* [[DxButton:new]] – Example of child element&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createGridList&amp;diff=82557</id>
		<title>Astrath:createGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createGridList&amp;diff=82557"/>
		<updated>2025-10-22T19:54:18Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxEdit:new =&lt;br /&gt;
{{Client function}} {{FuncDef|element DxGridlist:new ( float posX, float posY, float width, float height, element parent, boolean relative, table columnSize, string font, float fontSize, table color, table headColor, table hoverColor, table activeColor, table scrollColor, table scrollBGColor )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based gridlist element. Gridlists display rows and columns of data, support scrolling, hover effects, row selection, and customizable colors and fonts. Each gridlist instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the gridlist.&lt;br /&gt;
* parent (element) – Parent DX element to attach this gridlist to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* columnSize (table / number / 'auto') – Width of columns, can be 'auto' to divide evenly.&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontSize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* color, headColor, hoverColor, activeColor (table / tocolor) – Main, header, hover, and active row colors (optional).&lt;br /&gt;
* scrollColor, scrollBGColor (table / tocolor) – Scrollbar colors (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxGridlist element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the gridlist and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the gridlist for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addColumn(title, textAlign, columnSize) || Adds a new column with optional alignment and width.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addRow(...) || Adds a new row with the given items.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:clear() || Clears all rows from the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColumnTitle(idOrName, newTitle) || Changes the title of a column by ID or name.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setItemText(columnID, rowID, text) || Sets the text of a specific cell.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getItemText(columnID, rowID) || Returns the text of a specific cell.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getColumnCount() || Returns the total number of columns.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getRowCount() || Returns the total number of rows.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeColumn(columnID) || Removes a column by its ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeRow(rowID) || Removes a row by its ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getRowText(columnID, rowID) || Returns the text of a cell at a given row and column.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelectedRowID() || Returns the currently selected row ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelectedRowItem() || Returns all items in the currently selected row.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelectedRowID(id) || Sets the selected row by ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addChildDxElement(element) || Adds a child element to the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets colors for main, hover, header, active, or scroll elements.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a gridlist at position 200x150 with size 400x300&lt;br /&gt;
local myGrid = DxGridlist:new(200, 150, 400, 300)&lt;br /&gt;
&lt;br /&gt;
-- Add columns&lt;br /&gt;
myGrid:addColumn(&amp;quot;ID&amp;quot;, &amp;quot;center&amp;quot;, 0.1)&lt;br /&gt;
myGrid:addColumn(&amp;quot;Name&amp;quot;, &amp;quot;left&amp;quot;, 0.45)&lt;br /&gt;
myGrid:addColumn(&amp;quot;Score&amp;quot;, &amp;quot;right&amp;quot;, 0.45)&lt;br /&gt;
&lt;br /&gt;
-- Add rows&lt;br /&gt;
myGrid:addRow(1, &amp;quot;Alice&amp;quot;, 95)&lt;br /&gt;
myGrid:addRow(2, &amp;quot;Bob&amp;quot;, 88)&lt;br /&gt;
myGrid:addRow(3, &amp;quot;Charlie&amp;quot;, 76)&lt;br /&gt;
&lt;br /&gt;
-- Set selected row&lt;br /&gt;
myGrid:setSelectedRowID(2)&lt;br /&gt;
&lt;br /&gt;
-- Change main color&lt;br /&gt;
myGrid:setColor(50, 50, 50, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[DxCombobox:new]] – Page for combobox element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createGridList&amp;diff=82556</id>
		<title>Astrath:createGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createGridList&amp;diff=82556"/>
		<updated>2025-10-22T19:52:55Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxEdit:new =&lt;br /&gt;
{{Client function}} {{FuncDef|element DxGridlist:new ( float posX, float posY, float width, float height, element parent, boolean relative, table columnSize, string font, float fontSize, table color, table headColor, table hoverColor, table activeColor, table scrollColor, table scrollBGColor )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based gridlist element. Gridlists display rows and columns of data, support scrolling, hover effects, row selection, and customizable colors and fonts. Each gridlist instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the gridlist.&lt;br /&gt;
* parent (element) – Parent DX element to attach this gridlist to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* columnSize (table / number / 'auto') – Width of columns, can be 'auto' to divide evenly.&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontSize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* color, headColor, hoverColor, activeColor (table / tocolor) – Main, header, hover, and active row colors (optional).&lt;br /&gt;
* scrollColor, scrollBGColor (table / tocolor) – Scrollbar colors (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxGridlist element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the gridlist and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the gridlist for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addColumn(title, textAlign, columnSize) || Adds a new column with optional alignment and width.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addRow(...) || Adds a new row with the given items.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:clear() || Clears all rows from the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColumnTitle(idOrName, newTitle) || Changes the title of a column by ID or name.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setItemText(columnID, rowID, text) || Sets the text of a specific cell.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getItemText(columnID, rowID) || Returns the text of a specific cell.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getColumnCount() || Returns the total number of columns.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getRowCount() || Returns the total number of rows.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeColumn(columnID) || Removes a column by its ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeRow(rowID) || Removes a row by its ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:onScrollDown() || Scrolls the list down by one row.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:onScrollUp() || Scrolls the list up by one row.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getRowText(columnID, rowID) || Returns the text of a cell at a given row and column.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelectedRowID() || Returns the currently selected row ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelectedRowItem() || Returns all items in the currently selected row.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelectedRowID(id) || Sets the selected row by ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addChildDxElement(element) || Adds a child element to the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets colors for main, hover, header, active, or scroll elements.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a gridlist at position 200x150 with size 400x300&lt;br /&gt;
local myGrid = DxGridlist:new(200, 150, 400, 300)&lt;br /&gt;
&lt;br /&gt;
-- Add columns&lt;br /&gt;
myGrid:addColumn(&amp;quot;ID&amp;quot;, &amp;quot;center&amp;quot;, 0.1)&lt;br /&gt;
myGrid:addColumn(&amp;quot;Name&amp;quot;, &amp;quot;left&amp;quot;, 0.45)&lt;br /&gt;
myGrid:addColumn(&amp;quot;Score&amp;quot;, &amp;quot;right&amp;quot;, 0.45)&lt;br /&gt;
&lt;br /&gt;
-- Add rows&lt;br /&gt;
myGrid:addRow(1, &amp;quot;Alice&amp;quot;, 95)&lt;br /&gt;
myGrid:addRow(2, &amp;quot;Bob&amp;quot;, 88)&lt;br /&gt;
myGrid:addRow(3, &amp;quot;Charlie&amp;quot;, 76)&lt;br /&gt;
&lt;br /&gt;
-- Set selected row&lt;br /&gt;
myGrid:setSelectedRowID(2)&lt;br /&gt;
&lt;br /&gt;
-- Change main color&lt;br /&gt;
myGrid:setColor(50, 50, 50, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[DxCombobox:new]] – Page for combobox element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createGridList&amp;diff=82555</id>
		<title>Astrath:createGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createGridList&amp;diff=82555"/>
		<updated>2025-10-22T19:52:02Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxGridlist:new = {{Client function}} {{FuncDef|element DxGridlist:new ( float posX, float posY, float width, float height, element parent, boolean relative, table columnSize, string font, float fontSize, table color, table headColor, table hoverColor, table activeColor, table scrollColor, table scrollBGColor )}}  '''Description:''' Creates a new DX-based gridlist element. Gridlists display rows and columns of data, support scrolling, hover effects, row selection, and c...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxGridlist:new = {{Client function}} {{FuncDef|element DxGridlist:new ( float posX, float posY, float width, float height, element parent, boolean relative, table columnSize, string font, float fontSize, table color, table headColor, table hoverColor, table activeColor, table scrollColor, table scrollBGColor )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based gridlist element. Gridlists display rows and columns of data, support scrolling, hover effects, row selection, and customizable colors and fonts. Each gridlist instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the gridlist.&lt;br /&gt;
* parent (element) – Parent DX element to attach this gridlist to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* columnSize (table / number / 'auto') – Width of columns, can be 'auto' to divide evenly.&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontSize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* color, headColor, hoverColor, activeColor (table / tocolor) – Main, header, hover, and active row colors (optional).&lt;br /&gt;
* scrollColor, scrollBGColor (table / tocolor) – Scrollbar colors (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxGridlist element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the gridlist and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the gridlist for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addColumn(title, textAlign, columnSize) || Adds a new column with optional alignment and width.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addRow(...) || Adds a new row with the given items.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:clear() || Clears all rows from the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColumnTitle(idOrName, newTitle) || Changes the title of a column by ID or name.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setItemText(columnID, rowID, text) || Sets the text of a specific cell.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getItemText(columnID, rowID) || Returns the text of a specific cell.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getColumnCount() || Returns the total number of columns.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getRowCount() || Returns the total number of rows.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeColumn(columnID) || Removes a column by its ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeRow(rowID) || Removes a row by its ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:onScrollDown() || Scrolls the list down by one row.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:onScrollUp() || Scrolls the list up by one row.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getRowText(columnID, rowID) || Returns the text of a cell at a given row and column.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelectedRowID() || Returns the currently selected row ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelectedRowItem() || Returns all items in the currently selected row.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelectedRowID(id) || Sets the selected row by ID.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addChildDxElement(element) || Adds a child element to the gridlist.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets colors for main, hover, header, active, or scroll elements.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a gridlist at position 200x150 with size 400x300&lt;br /&gt;
local myGrid = DxGridlist:new(200, 150, 400, 300)&lt;br /&gt;
&lt;br /&gt;
-- Add columns&lt;br /&gt;
myGrid:addColumn(&amp;quot;ID&amp;quot;, &amp;quot;center&amp;quot;, 0.1)&lt;br /&gt;
myGrid:addColumn(&amp;quot;Name&amp;quot;, &amp;quot;left&amp;quot;, 0.45)&lt;br /&gt;
myGrid:addColumn(&amp;quot;Score&amp;quot;, &amp;quot;right&amp;quot;, 0.45)&lt;br /&gt;
&lt;br /&gt;
-- Add rows&lt;br /&gt;
myGrid:addRow(1, &amp;quot;Alice&amp;quot;, 95)&lt;br /&gt;
myGrid:addRow(2, &amp;quot;Bob&amp;quot;, 88)&lt;br /&gt;
myGrid:addRow(3, &amp;quot;Charlie&amp;quot;, 76)&lt;br /&gt;
&lt;br /&gt;
-- Set selected row&lt;br /&gt;
myGrid:setSelectedRowID(2)&lt;br /&gt;
&lt;br /&gt;
-- Change main color&lt;br /&gt;
myGrid:setColor(50, 50, 50, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[DxCombobox:new]] – Page for combobox element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createEditBox&amp;diff=82554</id>
		<title>Astrath:createEditBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createEditBox&amp;diff=82554"/>
		<updated>2025-10-22T19:48:22Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxEdit:new / Astrath:createEditBox =  {{Client function}} {{FuncDef|element DxEdit:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize, string placeholder )}}  '''Description:''' Creates a new DX-based edit box element. Edit boxes allow text input with options for read-only mode, numeric-only input, hover effects, and color customization. Each edit box instance is automatically registered i...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxEdit:new / Astrath:createEditBox =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxEdit:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize, string placeholder )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based edit box element. Edit boxes allow text input with options for read-only mode, numeric-only input, hover effects, and color customization. Each edit box instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – Initial text for the edit box (optional).&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the edit box.&lt;br /&gt;
* parent (element) – Parent DX element to attach this edit box to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* font (string) – Font used for the text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* placeholder (string) – Placeholder text when the edit box is empty (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxEdit element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the edit box and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:clear() || Clears all text and resets the cursor.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the edit box.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the edit box for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setReadOnly(boolean) || Enables or disables read-only mode.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setNumericOnly(boolean) || Enables numeric-only input.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getReadOnly() || Returns whether the edit box is in read-only mode.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the text of the edit box.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getText() || Returns the current text of the edit box.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main background or hover color of the edit box.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create an edit box at position 400x200 with size 200x25&lt;br /&gt;
local myEdit = DxEdit:new(&amp;quot;&amp;quot;, 400, 200, 200, 25)&lt;br /&gt;
&lt;br /&gt;
-- Set placeholder text&lt;br /&gt;
myEdit.placeholder = &amp;quot;Enter your name...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
-- Enable numeric only&lt;br /&gt;
myEdit:setNumericOnly(true)&lt;br /&gt;
&lt;br /&gt;
-- Show edit box and enable hover&lt;br /&gt;
myEdit:setVisible(true)&lt;br /&gt;
myEdit:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Set background color to light grey&lt;br /&gt;
myEdit:setColor(200, 200, 200, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[DxCheckbox:new]] – Page for checkbox element reference&lt;br /&gt;
* [[DxCombobox:new]] – Page for combobox element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createComboBox&amp;diff=82553</id>
		<title>Astrath:createComboBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createComboBox&amp;diff=82553"/>
		<updated>2025-10-22T19:44:57Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* DxCombobox:new / Astrath:createCombobox */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxCombobox:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxCombobox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string desc, number maxItems, table color, string font, float fontSize, table scrollColor, table scrollBGColor )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based combobox element. Comboboxes allow selecting from a list of items, support scrolling, hover effects, and color customization. Each combobox instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The default text displayed on the combobox.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the combobox.&lt;br /&gt;
* parent (element) – Parent DX element to attach this combobox to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* desc (string) – Default placeholder text when no item is selected (optional).&lt;br /&gt;
* maxItems (number) – Maximum number of items displayed at once (optional, default: 10).&lt;br /&gt;
* color (table / tocolor) – Base color for bar, button, and body (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontSize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* scrollColor, scrollBGColor (table / tocolor) – Scrollbar colors (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxCombobox element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the combobox and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the combobox for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the text displayed on the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addItem(string) || Adds a new item to the combobox list.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeItem(number) || Removes an item from the list by its index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:clear() || Removes all items from the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setItemText(number, string) || Updates the text of an item at a given index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getItemText(number) || Returns the text of an item by index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelected(number) || Sets the selected item by index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelected() || Returns the index of the currently selected item.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getItemCount() || Returns the total number of items in the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the color of bar, button, body, or hover.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a combobox at position 400x200 with size 150x25&lt;br /&gt;
local myCombo = DxCombobox:new(&amp;quot;Select Item&amp;quot;, 400, 200, 150, 25)&lt;br /&gt;
&lt;br /&gt;
-- Add items&lt;br /&gt;
myCombo:addItem(&amp;quot;Option 1&amp;quot;)&lt;br /&gt;
myCombo:addItem(&amp;quot;Option 2&amp;quot;)&lt;br /&gt;
myCombo:addItem(&amp;quot;Option 3&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- Show combobox and enable hover&lt;br /&gt;
myCombo:setVisible(true)&lt;br /&gt;
myCombo:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Select second item&lt;br /&gt;
myCombo:setSelected(2)&lt;br /&gt;
&lt;br /&gt;
-- Change bar color&lt;br /&gt;
myCombo:setColor(255, 255, 255, 255, &amp;quot;barColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[DxCheckbox:new]] – Page for checkbox element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createComboBox&amp;diff=82552</id>
		<title>Astrath:createComboBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createComboBox&amp;diff=82552"/>
		<updated>2025-10-22T19:43:32Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxCombobox:new / Astrath:createCombobox =  {{Client function}} {{FuncDef|element DxCombobox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string desc, number maxItems, table color, string font, float fontSize, table scrollColor, table scrollBGColor )}}  '''Description:''' Creates a new DX-based combobox element. Comboboxes allow selecting from a list of items, support scrolling, hover effects, and color customiz...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxCombobox:new / Astrath:createCombobox =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxCombobox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string desc, number maxItems, table color, string font, float fontSize, table scrollColor, table scrollBGColor )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based combobox element. Comboboxes allow selecting from a list of items, support scrolling, hover effects, and color customization. Each combobox instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The default text displayed on the combobox.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the combobox.&lt;br /&gt;
* parent (element) – Parent DX element to attach this combobox to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* desc (string) – Default placeholder text when no item is selected (optional).&lt;br /&gt;
* maxItems (number) – Maximum number of items displayed at once (optional, default: 10).&lt;br /&gt;
* color (table / tocolor) – Base color for bar, button, and body (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontSize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* scrollColor, scrollBGColor (table / tocolor) – Scrollbar colors (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxCombobox element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the combobox and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the combobox for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the text displayed on the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:addItem(string) || Adds a new item to the combobox list.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:removeItem(number) || Removes an item from the list by its index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:onScrollDown() || Scrolls the list down by one item.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:onScrollUp() || Scrolls the list up by one item.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:clear() || Removes all items from the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setItemText(number, string) || Updates the text of an item at a given index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getItemText(number) || Returns the text of an item by index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelected(number) || Sets the selected item by index.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelected() || Returns the index of the currently selected item.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getItemCount() || Returns the total number of items in the combobox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the color of bar, button, body, or hover.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a combobox at position 400x200 with size 150x25&lt;br /&gt;
local myCombo = DxCombobox:new(&amp;quot;Select Item&amp;quot;, 400, 200, 150, 25)&lt;br /&gt;
&lt;br /&gt;
-- Add items&lt;br /&gt;
myCombo:addItem(&amp;quot;Option 1&amp;quot;)&lt;br /&gt;
myCombo:addItem(&amp;quot;Option 2&amp;quot;)&lt;br /&gt;
myCombo:addItem(&amp;quot;Option 3&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- Show combobox and enable hover&lt;br /&gt;
myCombo:setVisible(true)&lt;br /&gt;
myCombo:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Select second item&lt;br /&gt;
myCombo:setSelected(2)&lt;br /&gt;
&lt;br /&gt;
-- Change bar color&lt;br /&gt;
myCombo:setColor(255, 255, 255, 255, &amp;quot;barColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[DxCheckbox:new]] – Page for checkbox element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createCheckBox&amp;diff=82551</id>
		<title>Astrath:createCheckBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createCheckBox&amp;diff=82551"/>
		<updated>2025-10-22T19:40:57Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* DxCheckbox:new / Astrath:createCheckbox */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxCheckbox:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxCheckbox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based checkbox element. Checkboxes can be attached to parent elements, support hover effects, custom colors, and selection state. Each checkbox instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The label text of the checkbox. Defaults to &amp;quot;radio&amp;quot;.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the checkbox.&lt;br /&gt;
* parent (element) – Parent DX element to attach this checkbox to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxCheckbox element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the checkbox and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the checkbox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the checkbox for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:isSelected() || Returns whether the checkbox is currently selected.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelected(boolean) || Sets the checkbox selection state.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelected() || Returns the current selection state.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main, hover, or select color of the checkbox.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a checkbox at position 300x400 with size 20x20&lt;br /&gt;
local myCheckbox = DxCheckbox:new(&amp;quot;Accept Terms&amp;quot;, 300, 400, 20, 20)&lt;br /&gt;
&lt;br /&gt;
-- Show the checkbox and enable hover effect&lt;br /&gt;
myCheckbox:setVisible(true)&lt;br /&gt;
myCheckbox:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Set selection state&lt;br /&gt;
myCheckbox:setSelected(true)&lt;br /&gt;
&lt;br /&gt;
-- Change colors&lt;br /&gt;
myCheckbox:setColor(255, 255, 255, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
myCheckbox:setColor(0, 255, 0, 200, &amp;quot;hoverColor&amp;quot;)&lt;br /&gt;
myCheckbox:setColor(0, 200, 0, 255, &amp;quot;selectColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createCheckBox&amp;diff=82550</id>
		<title>Astrath:createCheckBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createCheckBox&amp;diff=82550"/>
		<updated>2025-10-22T19:40:13Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxCheckbox:new / Astrath:createCheckbox =  {{Client function}} {{FuncDef|element DxCheckbox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize )}}  '''Description:''' Creates a new DX-based checkbox element. Checkboxes can be attached to parent elements, support hover effects, custom colors, and selection state. Each checkbox instance is automatically registered in the DX library.  '''Para...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxCheckbox:new / Astrath:createCheckbox =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxCheckbox:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based checkbox element. Checkboxes can be attached to parent elements, support hover effects, custom colors, and selection state. Each checkbox instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The label text of the checkbox. Defaults to &amp;quot;radio&amp;quot;.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the checkbox.&lt;br /&gt;
* parent (element) – Parent DX element to attach this checkbox to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxCheckbox element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the checkbox and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the checkbox.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the checkbox for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:isSelected() || Returns whether the checkbox is currently selected.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setSelected(boolean) || Sets the checkbox selection state.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getSelected() || Returns the current selection state.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main, hover, or select color of the checkbox.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a checkbox at position 300x400 with size 20x20&lt;br /&gt;
local myCheckbox = DxCheckbox:new(&amp;quot;Accept Terms&amp;quot;, 300, 400, 20, 20)&lt;br /&gt;
&lt;br /&gt;
-- Show the checkbox and enable hover effect&lt;br /&gt;
myCheckbox:setVisible(true)&lt;br /&gt;
myCheckbox:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Set selection state&lt;br /&gt;
myCheckbox:setSelected(true)&lt;br /&gt;
&lt;br /&gt;
-- Change colors&lt;br /&gt;
myCheckbox:setColor(255, 255, 255, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
myCheckbox:setColor(0, 255, 0, 200, &amp;quot;hoverColor&amp;quot;)&lt;br /&gt;
myCheckbox:setColor(0, 200, 0, 255, &amp;quot;selectColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxButton:new]] – Page for button element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82549</id>
		<title>Astrath:createButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82549"/>
		<updated>2025-10-22T19:37:48Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* DxButton:new */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxButton:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxButton:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, table color, string font, float fontsize, string description, boolean isIcon, float iconWidth, float iconHeight )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based button element. Buttons can be attached to parent elements, support hover effects, custom colors, icons, fonts, and descriptions. Each button instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The button label text. Defaults to &amp;quot;Button&amp;quot;.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the button.&lt;br /&gt;
* parent (element) – Parent DX element to attach this button to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* color (table / tocolor) – Main background color (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* description (string) – Optional description text.&lt;br /&gt;
* isIcon (boolean) – If true, the button will display an icon instead of text.&lt;br /&gt;
* iconWidth, iconHeight (float) – Size of the icon relative to the button (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxButton element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the button and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the button.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the button for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the button text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getText() || Returns the current button text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setDescription(string) || Sets the button description.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main or hover color of the button.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a button at position 200x300 with size 150x50&lt;br /&gt;
local myButton = DxButton:new(&amp;quot;Click Me&amp;quot;, 200, 300, 150, 50)&lt;br /&gt;
&lt;br /&gt;
-- Show the button and enable hover effect&lt;br /&gt;
myButton:setVisible(true)&lt;br /&gt;
myButton:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Change text and color&lt;br /&gt;
myButton:setText(&amp;quot;Press Me&amp;quot;)&lt;br /&gt;
myButton:setColor(255, 0, 0, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82548</id>
		<title>Astrath:createButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82548"/>
		<updated>2025-10-22T19:37:09Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxButton:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxButton:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, table color, string font, float fontsize, string description, boolean isIcon, float iconWidth, float iconHeight )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based button element. Buttons can be attached to parent elements, support hover effects, custom colors, icons, fonts, and descriptions. Each button instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The button label text. Defaults to &amp;quot;Button&amp;quot;.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the button.&lt;br /&gt;
* parent (element) – Parent DX element to attach this button to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* color (table / tocolor) – Main background color (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* description (string) – Optional description text.&lt;br /&gt;
* isIcon (boolean) – If true, the button will display an icon instead of text.&lt;br /&gt;
* iconWidth, iconHeight (float) – Size of the icon relative to the button (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxButton element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the button and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the button.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the button for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the button text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getText() || Returns the current button text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setDescription(string) || Sets the button description.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main or hover color of the button.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:draw() || Draws the button using the assigned style.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a button at position 200x300 with size 150x50&lt;br /&gt;
local myButton = DxButton:new(&amp;quot;Click Me&amp;quot;, 200, 300, 150, 50)&lt;br /&gt;
&lt;br /&gt;
-- Show the button and enable hover effect&lt;br /&gt;
myButton:setVisible(true)&lt;br /&gt;
myButton:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Change text and color&lt;br /&gt;
myButton:setText(&amp;quot;Press Me&amp;quot;)&lt;br /&gt;
myButton:setColor(255, 0, 0, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82547</id>
		<title>Astrath:createButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82547"/>
		<updated>2025-10-22T19:36:38Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* DxButton:new */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxButton:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxButton:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, table color, string font, float fontsize, string description, boolean isIcon, float iconWidth, float iconHeight )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based button element. Buttons can be attached to parent elements, support hover effects, custom colors, icons, fonts, and descriptions. Each button instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The button label text. Defaults to &amp;quot;Button&amp;quot;.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the button.&lt;br /&gt;
* parent (element) – Parent DX element to attach this button to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* color (table / tocolor) – Main background color (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* description (string) – Optional description text.&lt;br /&gt;
* isIcon (boolean) – If true, the button will display an icon instead of text.&lt;br /&gt;
* iconWidth, iconHeight (float) – Size of the icon relative to the button (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxButton element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Function !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the button and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the button.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the button for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setText(string) || Sets the button text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:getText() || Returns the current button text.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setDescription(string) || Sets the button description.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main or hover color of the button.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:draw() || Draws the button using the assigned style.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a button at position 200x300 with size 150x50&lt;br /&gt;
local myButton = DxButton:new(&amp;quot;Click Me&amp;quot;, 200, 300, 150, 50)&lt;br /&gt;
&lt;br /&gt;
-- Show the button and enable hover effect&lt;br /&gt;
myButton:setVisible(true)&lt;br /&gt;
myButton:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Change text and color&lt;br /&gt;
myButton:setText(&amp;quot;Press Me&amp;quot;)&lt;br /&gt;
myButton:setColor(255, 0, 0, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82546</id>
		<title>Astrath:createButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createButton&amp;diff=82546"/>
		<updated>2025-10-22T19:33:36Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= DxButton:new =  {{Client function}} {{FuncDef|element DxButton:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, table color, string font, float fontsize, string description, boolean isIcon, float iconWidth, float iconHeight )}}  '''Description:''' Creates a new DX-based button element. Buttons can be attached to parent elements, support hover effects, custom colors, icons, fonts, and descriptions. Each button insta...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxButton:new =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxButton:new ( string text, float posX, float posY, float width, float height, element parent, boolean relative, table color, string font, float fontsize, string description, boolean isIcon, float iconWidth, float iconHeight )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based button element. Buttons can be attached to parent elements, support hover effects, custom colors, icons, fonts, and descriptions. Each button instance is automatically registered in the DX library.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* text (string) – The button label text. Defaults to &amp;quot;Button&amp;quot;.&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the button.&lt;br /&gt;
* parent (element) – Parent DX element to attach this button to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
* color (table / tocolor) – Main background color (optional).&lt;br /&gt;
* font (string) – Font used for text (optional, default: &amp;quot;default-bold&amp;quot;).&lt;br /&gt;
* fontsize (float) – Font size multiplier (optional, default: 1).&lt;br /&gt;
* description (string) – Optional description text.&lt;br /&gt;
* isIcon (boolean) – If true, the button will display an icon instead of text.&lt;br /&gt;
* iconWidth, iconHeight (float) – Size of the icon relative to the button (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxButton element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
* `:destroy()` – Destroys the button and all its child elements.&lt;br /&gt;
* `:setVisible(boolean)` – Shows or hides the button.&lt;br /&gt;
* `:setEnabled(boolean)` – Enables or disables the button for interaction.&lt;br /&gt;
* `:setText(string)` – Sets the button text.&lt;br /&gt;
* `:getText()` – Returns the current button text.&lt;br /&gt;
* `:setDescription(string)` – Sets the button description.&lt;br /&gt;
* `:setHoverable(boolean)` – Enables or disables hover effect.&lt;br /&gt;
* `:setColor(r, g, b, a, type)` – Sets the main or hover color of the button.&lt;br /&gt;
* `:draw()` – Draws the button using the assigned style.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a button at position 200x300 with size 150x50&lt;br /&gt;
local myButton = DxButton:new(&amp;quot;Click Me&amp;quot;, 200, 300, 150, 50)&lt;br /&gt;
&lt;br /&gt;
-- Show the button and enable hover effect&lt;br /&gt;
myButton:setVisible(true)&lt;br /&gt;
myButton:setHoverable(true)&lt;br /&gt;
&lt;br /&gt;
-- Change text and color&lt;br /&gt;
myButton:setText(&amp;quot;Press Me&amp;quot;)&lt;br /&gt;
myButton:setColor(255, 0, 0, 255, &amp;quot;mainColor&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Page for window element reference&lt;br /&gt;
* [[DxLabel:new]] – Page for label element reference&lt;br /&gt;
* [[onClientRender]] – Event used to render DX elements&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82545</id>
		<title>Astrath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82545"/>
		<updated>2025-10-22T19:31:54Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* Client Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Astrath =&lt;br /&gt;
&lt;br /&gt;
''Astrath'' is a DirectX framework for MTA:SA developed by '''Magath'''.  &lt;br /&gt;
It provides tools to create custom interfaces, animations, and other DX-based visuals.&lt;br /&gt;
&lt;br /&gt;
== Client Functions ==&lt;br /&gt;
* [[Astrath:createWindow]] – Creates a new DX-based window element&lt;br /&gt;
* [[Astrath:createButton]] – Creates a DX-based button element&lt;br /&gt;
* [[Astrath:createCheckBox]] – Creates a DX-based checkbox element&lt;br /&gt;
* [[Astrath:createComboBox]] – Creates a DX-based combobox element&lt;br /&gt;
* [[Astrath:createEditBox]] – Creates a DX-based editbox element&lt;br /&gt;
* [[Astrath:createGridList]] – Creates a DX-based gridlist element&lt;br /&gt;
* [[Astrath:createHidden]] – Creates a hidden DX element (used as a parent container)&lt;br /&gt;
* [[Astrath:createImage]] – Draws a DX-based image&lt;br /&gt;
* [[Astrath:createLabel]] – Creates a DX-based label element&lt;br /&gt;
* [[Astrath:createMemo]] – Creates a DX-based multi-line text element&lt;br /&gt;
* [[Astrath:createRadio]] – Creates a DX-based radio button element&lt;br /&gt;
* [[Astrath:createShape]] – Creates a drawable rectangle element (can be used as parent)&lt;br /&gt;
* [[Astrath:createTab]] – Creates a DX-based tab element&lt;br /&gt;
* [[Astrath:createTabPanel]] – Creates a container for tabs&lt;br /&gt;
* [[Astrath:animateText]] – Animates text dynamically&lt;br /&gt;
&lt;br /&gt;
== Server Functions ==&lt;br /&gt;
* [[Astrath:loadResources]] – Load resources or assets on server&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[dxDrawImage]]&lt;br /&gt;
* [[dxDrawText]]&lt;br /&gt;
* [[onClientRender]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82544</id>
		<title>Astrath:createWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82544"/>
		<updated>2025-10-22T19:23:49Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxWindow:new=&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxWindow:new ( string title, float posX, float posY, float width, float height, table color, element parent, boolean relative, boolean header, float headerSize, table headerColor, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based window element. The window can contain child DX elements, supports customization of colors, fonts, header, and can be attached to a parent element. Each window instance is automatically registered in the DX library for rendering and management.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* title (string) – The title text displayed on the window. Defaults to &amp;quot;New window&amp;quot; if not provided.&lt;br /&gt;
* posX (float) – X position on screen.&lt;br /&gt;
* posY (float) – Y position on screen.&lt;br /&gt;
* width (float) – Width of the window.&lt;br /&gt;
* height (float) – Height of the window.&lt;br /&gt;
* color (table / tocolor) – Main background color in RGBA. Optional.&lt;br /&gt;
* parent (element) – Parent DX element to attach this window to. Optional.&lt;br /&gt;
* relative (boolean) – If true, position will be calculated relative to parent. Optional.&lt;br /&gt;
* header (boolean) – If true, the window will display a header. Optional.&lt;br /&gt;
* headerSize (float) – Relative size of the header. Defaults to 5% of height.&lt;br /&gt;
* headerColor (table / tocolor) – Header color in RGBA. Defaults to tocolor(91, 57, 219, 255).&lt;br /&gt;
* font (string) – Font used for title text. Defaults to &amp;quot;default-bold&amp;quot;.&lt;br /&gt;
* fontsize (float) – Font size multiplier. Defaults to 1.&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DX window element (DxWindow instance).&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the window and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setTitle(title) || Sets a new title for the window.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setMovable(boolean) || Enables or disables window movement.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Shows or hides the window.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables window for interaction.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setHoverable(boolean) || Enables or disables hover effect.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setColor(r, g, b, a, type) || Sets the main or hover color of the window.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a window at position 200x200 with size 300x200&lt;br /&gt;
local myWindow = DxWindow:new(&lt;br /&gt;
    &amp;quot;My Window&amp;quot;, 200, 200, 300, 200, tocolor(50, 50, 50, 255), nil, false, true, 0.05, nil, &amp;quot;default-bold&amp;quot;, 1&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
-- Show window and enable hover&lt;br /&gt;
myWindow:setVisible(true)&lt;br /&gt;
myWindow:setHoverable(true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[DxButton:new]] – For creating buttons inside windows&lt;br /&gt;
* [[DxLabel:new]] – For adding text labels&lt;br /&gt;
* [[onClientRender]] – Event used to draw DX elements&lt;br /&gt;
* [[Astrath]] – Main library page&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82543</id>
		<title>Astrath:createWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82543"/>
		<updated>2025-10-22T19:10:38Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* DxWindow:new */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxWindow:new=&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxWindow:new ( string title, float posX, float posY, float width, float height, table color, element parent, boolean relative, boolean header, float headerSize, table headerColor, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based window element. The window can contain child DX elements, supports customization of colors, fonts, header, and can be attached to a parent element. Each window instance is automatically registered in the DX library for rendering and management.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* title (string) – The title text displayed on the window. Defaults to &amp;quot;New window&amp;quot; if not provided.&lt;br /&gt;
* posX (float) – X position on screen.&lt;br /&gt;
* posY (float) – Y position on screen.&lt;br /&gt;
* width (float) – Width of the window.&lt;br /&gt;
* height (float) – Height of the window.&lt;br /&gt;
* color (table / tocolor) – Main background color in RGBA. Optional.&lt;br /&gt;
* parent (element) – Parent DX element to attach this window to. Optional.&lt;br /&gt;
* relative (boolean) – If true, position will be calculated relative to parent. Optional.&lt;br /&gt;
* header (boolean) – If true, the window will display a header. Optional.&lt;br /&gt;
* headerSize (float) – Relative size of the header. Defaults to 5% of height.&lt;br /&gt;
* headerColor (table / tocolor) – Header color in RGBA. Defaults to tocolor(91, 57, 219, 255).&lt;br /&gt;
* font (string) – Font used for title text. Defaults to &amp;quot;default-bold&amp;quot;.&lt;br /&gt;
* fontsize (float) – Font size multiplier. Defaults to 1.&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DX window element (DxWindow instance).&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
* Ath:destroy()` – Destroys the window and all its child elements.&lt;br /&gt;
* Ath:setTitle(title)` – Sets a new title for the window.&lt;br /&gt;
* Ath:setMovable(boolean)` – Enables or disables window movement.&lt;br /&gt;
* Ath:setVisible(boolean)` – Shows or hides the window.&lt;br /&gt;
* Ath:setEnabled(boolean)` – Enables or disables the window for interaction.&lt;br /&gt;
* Ath:setHoverable(boolean)` – Enables or disables hover effect.&lt;br /&gt;
* Ath:setColor(r, g, b, a, type)` – Sets the main or hover color of the window.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a window at position 200x200 with size 300x200&lt;br /&gt;
local myWindow = DxWindow:new(&lt;br /&gt;
    &amp;quot;My Window&amp;quot;, 200, 200, 300, 200, tocolor(50, 50, 50, 255), nil, false, true, 0.05, nil, &amp;quot;default-bold&amp;quot;, 1&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
-- Show window and enable hover&lt;br /&gt;
myWindow:setVisible(true)&lt;br /&gt;
myWindow:setHoverable(true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[DxButton:new]] – For creating buttons inside windows&lt;br /&gt;
* [[DxLabel:new]] – For adding text labels&lt;br /&gt;
* [[onClientRender]] – Event used to draw DX elements&lt;br /&gt;
* [[Astrath]] – Main library page&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82542</id>
		<title>Astrath:createWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82542"/>
		<updated>2025-10-22T19:08:07Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* DxWindow:new / Astrath:createWindow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxWindow:new=&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxWindow:new ( string title, float posX, float posY, float width, float height, table color, element parent, boolean relative, boolean header, float headerSize, table headerColor, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based window element. The window can contain child DX elements, supports customization of colors, fonts, header, and can be attached to a parent element. Each window instance is automatically registered in the DX library for rendering and management.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* title (string) – The title text displayed on the window. Defaults to &amp;quot;New window&amp;quot; if not provided.&lt;br /&gt;
* posX (float) – X position on screen.&lt;br /&gt;
* posY (float) – Y position on screen.&lt;br /&gt;
* width (float) – Width of the window.&lt;br /&gt;
* height (float) – Height of the window.&lt;br /&gt;
* color (table / tocolor) – Main background color in RGBA. Optional.&lt;br /&gt;
* parent (element) – Parent DX element to attach this window to. Optional.&lt;br /&gt;
* relative (boolean) – If true, position will be calculated relative to parent. Optional.&lt;br /&gt;
* header (boolean) – If true, the window will display a header. Optional.&lt;br /&gt;
* headerSize (float) – Relative size of the header. Defaults to 5% of height.&lt;br /&gt;
* headerColor (table / tocolor) – Header color in RGBA. Defaults to tocolor(91, 57, 219, 255).&lt;br /&gt;
* font (string) – Font used for title text. Defaults to &amp;quot;default-bold&amp;quot;.&lt;br /&gt;
* fontsize (float) – Font size multiplier. Defaults to 1.&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DX window element (DxWindow instance).&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
* `:destroy()` – Destroys the window and all its child elements.&lt;br /&gt;
* `:setTitle(title)` – Sets a new title for the window.&lt;br /&gt;
* `:setMovable(boolean)` – Enables or disables window movement.&lt;br /&gt;
* `:setVisible(boolean)` – Shows or hides the window.&lt;br /&gt;
* `:setEnabled(boolean)` – Enables or disables the window for interaction.&lt;br /&gt;
* `:setHoverable(boolean)` – Enables or disables hover effect.&lt;br /&gt;
* `:setColor(r, g, b, a, type)` – Sets the main or hover color of the window.&lt;br /&gt;
* `:draw()` – Draws the window using the assigned style.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a window at position 200x200 with size 300x200&lt;br /&gt;
local myWindow = DxWindow:new(&lt;br /&gt;
    &amp;quot;My Window&amp;quot;, 200, 200, 300, 200, tocolor(50, 50, 50, 255), nil, false, true, 0.05, nil, &amp;quot;default-bold&amp;quot;, 1&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
-- Show window and enable hover&lt;br /&gt;
myWindow:setVisible(true)&lt;br /&gt;
myWindow:setHoverable(true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[DxButton:new]] – For creating buttons inside windows&lt;br /&gt;
* [[DxLabel:new]] – For adding text labels&lt;br /&gt;
* [[onClientRender]] – Event used to draw DX elements&lt;br /&gt;
* [[Astrath]] – Main library page&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82541</id>
		<title>Astrath:createWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82541"/>
		<updated>2025-10-22T19:07:21Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DxWindow:new / Astrath:createWindow =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element DxWindow:new ( string title, float posX, float posY, float width, float height, table color, element parent, boolean relative, boolean header, float headerSize, table headerColor, string font, float fontsize )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based window element. The window can contain child DX elements, supports customization of colors, fonts, header, and can be attached to a parent element. Each window instance is automatically registered in the DX library for rendering and management.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* title (string) – The title text displayed on the window. Defaults to &amp;quot;New window&amp;quot; if not provided.&lt;br /&gt;
* posX (float) – X position on screen.&lt;br /&gt;
* posY (float) – Y position on screen.&lt;br /&gt;
* width (float) – Width of the window.&lt;br /&gt;
* height (float) – Height of the window.&lt;br /&gt;
* color (table / tocolor) – Main background color in RGBA. Optional.&lt;br /&gt;
* parent (element) – Parent DX element to attach this window to. Optional.&lt;br /&gt;
* relative (boolean) – If true, position will be calculated relative to parent. Optional.&lt;br /&gt;
* header (boolean) – If true, the window will display a header. Optional.&lt;br /&gt;
* headerSize (float) – Relative size of the header. Defaults to 5% of height.&lt;br /&gt;
* headerColor (table / tocolor) – Header color in RGBA. Defaults to tocolor(91, 57, 219, 255).&lt;br /&gt;
* font (string) – Font used for title text. Defaults to &amp;quot;default-bold&amp;quot;.&lt;br /&gt;
* fontsize (float) – Font size multiplier. Defaults to 1.&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DX window element (DxWindow instance).&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
* `:destroy()` – Destroys the window and all its child elements.&lt;br /&gt;
* `:setTitle(title)` – Sets a new title for the window.&lt;br /&gt;
* `:setMovable(boolean)` – Enables or disables window movement.&lt;br /&gt;
* `:setVisible(boolean)` – Shows or hides the window.&lt;br /&gt;
* `:setEnabled(boolean)` – Enables or disables the window for interaction.&lt;br /&gt;
* `:setHoverable(boolean)` – Enables or disables hover effect.&lt;br /&gt;
* `:setColor(r, g, b, a, type)` – Sets the main or hover color of the window.&lt;br /&gt;
* `:draw()` – Draws the window using the assigned style.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a window at position 200x200 with size 300x200&lt;br /&gt;
local myWindow = DxWindow:new(&lt;br /&gt;
    &amp;quot;My Window&amp;quot;, 200, 200, 300, 200, tocolor(50, 50, 50, 255), nil, false, true, 0.05, nil, &amp;quot;default-bold&amp;quot;, 1&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
-- Show window and enable hover&lt;br /&gt;
myWindow:setVisible(true)&lt;br /&gt;
myWindow:setHoverable(true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[DxButton:new]] – For creating buttons inside windows&lt;br /&gt;
* [[DxLabel:new]] – For adding text labels&lt;br /&gt;
* [[onClientRender]] – Event used to draw DX elements&lt;br /&gt;
* [[Astrath]] – Main library page&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82540</id>
		<title>Astrath:createWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82540"/>
		<updated>2025-10-22T18:51:28Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* Astrath:createWindow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
{{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based window element. The window can then be shown, hidden, or manipulated using other Astrath functions.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* x (float) – The X position of the window on the screen&lt;br /&gt;
* y (float) – The Y position of the window on the screen&lt;br /&gt;
* width (float) – Width of the window&lt;br /&gt;
* height (float) – Height of the window&lt;br /&gt;
* title (string) – Title displayed in the window&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns an element representing the window.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local win = Astrath:createWindow(200, 200, 300, 200, &amp;quot;Example Window&amp;quot;)&lt;br /&gt;
Astrath:show(win, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath:drawImage]]&lt;br /&gt;
* [[Astrath:animateText]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82539</id>
		<title>Astrath:createWindow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createWindow&amp;diff=82539"/>
		<updated>2025-10-22T18:49:37Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;= Astrath:createWindow =  {{Client function}} {{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}}  '''Description:''' Creates a new DX-based window element. The window can then be shown, hidden, or manipulated using other Astrath functions.  '''Parameters:''' * x (float) – The X position of the window on the screen * y (float) – The Y position of the window on the screen * width (float) – Width of the window * heig...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Astrath:createWindow =&lt;br /&gt;
&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a new DX-based window element. The window can then be shown, hidden, or manipulated using other Astrath functions.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* x (float) – The X position of the window on the screen&lt;br /&gt;
* y (float) – The Y position of the window on the screen&lt;br /&gt;
* width (float) – Width of the window&lt;br /&gt;
* height (float) – Height of the window&lt;br /&gt;
* title (string) – Title displayed in the window&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns an element representing the window.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local win = Astrath:createWindow(200, 200, 300, 200, &amp;quot;Example Window&amp;quot;)&lt;br /&gt;
Astrath:show(win, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath:drawImage]]&lt;br /&gt;
* [[Astrath:animateText]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82538</id>
		<title>Astrath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82538"/>
		<updated>2025-10-22T18:48:12Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: /* Astrath */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Astrath =&lt;br /&gt;
&lt;br /&gt;
''Astrath'' is a DirectX framework for MTA:SA developed by '''Magath'''.  &lt;br /&gt;
It provides tools to create custom interfaces, animations, and other DX-based visuals.&lt;br /&gt;
&lt;br /&gt;
== Client Functions ==&lt;br /&gt;
* [[Astrath:createWindow]] – Creates a new DX-based window element&lt;br /&gt;
* [[Astrath:drawImage]] – Draws an image on screen&lt;br /&gt;
* [[Astrath:animateText]] – Animate text dynamically&lt;br /&gt;
&lt;br /&gt;
== Server Functions ==&lt;br /&gt;
* [[Astrath:loadResources]] – Load resources or assets on server&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[dxDrawImage]]&lt;br /&gt;
* [[dxDrawText]]&lt;br /&gt;
* [[onClientRender]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82535</id>
		<title>Astrath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath&amp;diff=82535"/>
		<updated>2025-10-15T15:59:02Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Resource Astrath&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Astrath =&lt;br /&gt;
''Astrath'' is a DirectX framework for MTA:SA developed by '''Magath'''.  &lt;br /&gt;
It provides a simplified API for drawing custom interfaces, animations, and other DX-based visuals.&lt;br /&gt;
&lt;br /&gt;
== Functions ==&lt;br /&gt;
=== Client functions ===&lt;br /&gt;
* [[#Astrath:createWindow|Astrath:createWindow]]&lt;br /&gt;
* [[#Astrath:drawImage|Astrath:drawImage]]&lt;br /&gt;
* [[#Astrath:animateText|Astrath:animateText]]&lt;br /&gt;
&lt;br /&gt;
== Function Reference ==&lt;br /&gt;
&lt;br /&gt;
=== Astrath:createWindow ===&lt;br /&gt;
{{FuncDef|element Astrath:createWindow ( float x, float y, float width, float height, string title )}}&lt;br /&gt;
Creates a new DX-based window element.&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns an element representing the window.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local win = Astrath:createWindow(200, 200, 300, 200, &amp;quot;Example Window&amp;quot;)&lt;br /&gt;
Astrath:show(win, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
=== Astrath:drawImage ===&lt;br /&gt;
{{FuncDef|bool Astrath:drawImage ( float x, float y, float w, float h, string path [, int color = 0xFFFFFFFF ] )}}&lt;br /&gt;
Draws a DX image on screen.&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns true if successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Astrath:drawImage(100, 100, 128, 128, &amp;quot;img/logo.png&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[dxDrawImage]]&lt;br /&gt;
* [[dxDrawText]]&lt;br /&gt;
* [[onClientRender]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OutputChatBox&amp;diff=80823</id>
		<title>OutputChatBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OutputChatBox&amp;diff=80823"/>
		<updated>2024-10-21T23:38:09Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OutputChatBox&amp;diff=80822</id>
		<title>OutputChatBox</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OutputChatBox&amp;diff=80822"/>
		<updated>2024-10-21T23:37:26Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Replaced content with &amp;quot;cs:outputChatBox&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[cs:outputChatBox]]&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Sybellex&amp;diff=80821</id>
		<title>User:Sybellex</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Sybellex&amp;diff=80821"/>
		<updated>2024-10-21T23:35:28Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Replaced content with &amp;quot;&amp;lt;inputbox&amp;gt; type=create width=100 break=no buttonlabel=Create new article placeholder=Article title &amp;lt;/inputbox&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;inputbox&amp;gt;&lt;br /&gt;
type=create&lt;br /&gt;
width=100&lt;br /&gt;
break=no&lt;br /&gt;
buttonlabel=Create new article&lt;br /&gt;
placeholder=Article title&lt;br /&gt;
&amp;lt;/inputbox&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Sybellex&amp;diff=80008</id>
		<title>User:Sybellex</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Sybellex&amp;diff=80008"/>
		<updated>2024-08-13T15:38:31Z</updated>

		<summary type="html">&lt;p&gt;Sybellex: Created page with &amp;quot;==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool addEvent ( string eventName [, bool allowRemoteTrigger = false ] )    &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  *'''eventName:''' The name of the event you wish to create.  ===Optional Arguments=== *'''allowRemoteTrigger:''' A boolean specifying whether this event can be called remotely using triggerClientEvent / triggerServerEvent or not.  ===Returns=== Returns ''true'' if the event was added successfully, ''fal...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool addEvent ( string eventName [, bool allowRemoteTrigger = false ] )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''eventName:''' The name of the event you wish to create.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''allowRemoteTrigger:''' A boolean specifying whether this event can be called remotely using [[triggerClientEvent]] / [[triggerServerEvent]] or not.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the event was added successfully, ''false'' if the event was already added.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will define a new event called ''onSpecialEvent''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Add a new event called onSpecialEvent&lt;br /&gt;
addEvent ( &amp;quot;onSpecialEvent&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
-- Define our handler function, that takes a &amp;quot;text&amp;quot; parameter and outputs it to the chatbox&lt;br /&gt;
function specialEventHandler ( text )&lt;br /&gt;
	outputChatBox ( text )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add it as a handler for our event&lt;br /&gt;
addEventHandler ( &amp;quot;onSpecialEvent&amp;quot;, root, specialEventHandler )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then trigger this event later on using:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	triggerEvent ( &amp;quot;onSpecialEvent&amp;quot;, root, &amp;quot;test&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will cause the handler to be triggered, so &amp;quot;test&amp;quot; will be output to the chatbox.&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
</feed>