# GuiInterface.trackQuest

Adds a quest to the quest tracker

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:trackQuest( name, title, mainQuest, questTasks, icon? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#trackquest)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The QuestGui interface |
| `name` | string | The name of quest |
| `title` | string | The quest title to be displayed in the tracker |
| `mainQuest` | boolean | If the quest is a main quest (Displayed on top in the tracker) |
| `questTasks` | table | The table of quest tasks to display in the log Task\{ name = string, text = string, count = number, target = number, complete = boolean \} |
| `icon` *(optional)* | string | The icon to display in the tracker (Optional) |
