Astrath

From Multi Theft Auto: Wiki
Revision as of 15:59, 15 October 2025 by Sybellex (talk | contribs) (Resource Astrath)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Astrath

Astrath is a DirectX framework for MTA:SA developed by Magath. It provides a simplified API for drawing custom interfaces, animations, and other DX-based visuals.

Functions

Client functions

Function Reference

Astrath:createWindow

Template:FuncDef Creates a new DX-based window element.

Returns:

Returns an element representing the window.

Example:

local win = Astrath:createWindow(200, 200, 300, 200, "Example Window")
Astrath:show(win, true)

---

Astrath:drawImage

Template:FuncDef Draws a DX image on screen.

Returns:

Returns true if successful, false otherwise.

Example:

Astrath:drawImage(100, 100, 128, 128, "img/logo.png")

---

See Also