> For the complete documentation index, see [llms.txt](https://afternode.gitbook.io/general-script-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://afternode.gitbook.io/general-script-api/events/introdution.md).

# Introdution

Event system allows scripts register callbacks into script API

**Example:**

```javascript
scriptInstance.listen("base::init", function() {
    log("Hello world")
})
```

The above example registered **init** event in **base** namespace, and it will loaded in script setup section
