Astrath

From Multi Theft Auto: Wiki
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