> For the complete documentation index, see [llms.txt](https://brady-xyz.gitbook.io/maclib-ui-library/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib.md).

# Loading Maclib

First, you must import and define the Maclib module, place this code somewhere to begin.

```lua
local MacLib = loadstring(game:HttpGet("https://github.com/biggaboy212/Maclib/releases/latest/download/maclib.txt"))()
```

Functions

<pre class="language-lua"><code class="lang-lua">:Demo() -- Brings up a demo window

:SetFolder(&#x3C;string> Folder) -- Sets the folder all configs are saved in.
:SaveConfig(&#x3C;string> Path) -- Saves all element values to a file in the folder you set with :SetFolder(), you can ignore certain elements by setting their .IgnoreConfig to true, or simply not defining a flag.
:LoadConfig(&#x3C;string> Path) -- Loads a config located at path.
:RefreshConfigList(: table) -- Returns a table of all saved config names ( eg. {"Legit.json", "Rage.json"} )
<strong>:LoadAutoLoadConfig() -- Loads the config the user selected to automatically load.
</strong><strong>--// To insert a pre-made config section, reference the "Adding tabs" page.
</strong></code></pre>
