> For the complete documentation index, see [llms.txt](https://docs.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rlib.io/dev/references/uclass/setup.md).

# setup

CLIENT

`:setup(` [**ᶠᵘⁿᶜ**](https://wiki.facepunch.com/gmod/function)  fn`)`

## ▸ Parameters

&#x20;     ***`fn`**`    ``func`*\
&#x20;                            function executed

## ▸ Alias

&#x20;     `setup, onload`

## ▸ Description

&#x20;        Creates various functions that will be ran once the parent panel has been initialized.

## ▸ Notes

&#x20;        List of functions executed in order:

&#x20;        **1)** pnl:\_*Fonts( )*\
&#x20;        **2)** *pnl:\_Lang( )*\
&#x20;        **3)** *pnl:\_Declare( )*\
&#x20;        **4)** *pnl:\_Colorize( )*\
&#x20;        **5)** *pnl:\_Call( )*\
&#x20;        **6)** *fn parameter*

## ▸ Example

```lua
self        = ui.get( self                          )
:setup      (                                       )
```
