> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# mainPath

> Récupère le chemin vers le script principal de la quête (main.lua).

Récupère le chemin vers le script principal de la quête (main.lua).

#### 🎮 Méthode

```lua theme={null}
quest:mainPath()
```

#### 💎 Valeur de retour

| Type     | Description                                                                    |
| -------- | ------------------------------------------------------------------------------ |
| `string` | Chemin du fichier vers le script principal, ou une chaîne vide si introuvable. |

#### 💡 Exemple

```lua theme={null}
local main = quest:mainPath()
global:printMessage("Script principal : " .. main)
```
