> For the complete documentation index, see [llms.txt](https://edwn.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edwn.gitbook.io/documentation/useful-information/connections.md).

# Connections

Callbacks are called every time the (specified function) is ran in the program, kind of like a hook

### List of available connections :

```lua
"OnInterfacePaint", "__OnInterfacePaint",
"OnWorldPaint", "__OnWorldPaint",
"OnInputUpdate", "__OnInputUpdate",
"OnObjectCreation" "__OnInterfacePaint"
```

{% hint style="info" %}
Connections with \_\_ before their name are prioritized and ran first!
{% endhint %}

### Connecting a function :

```lua
Connect("OnInterfacePaint", function()
    --Do something!
end)
```
