Quest Tracker
`showQuest(goals, options)`
Shows the quest tracker overlay.
| Parameter | Type | Description |
|---|---|---|
goals |
table |
Array of { label = string, done = boolean } |
options |
table |
Optional settings (see below) |
Options:
| Field | Type | Default | Description |
|---|---|---|---|
title |
string |
— | Tracker title |
position |
string |
'top-right' |
'top-right' or 'top-left' |
allowSkip |
boolean |
false |
Allow player to manually toggle goals |
exports['amzn_uikit']:showQuest(
{
{ label = 'Go to the marker' },
{ label = 'Talk to the NPC' },
{ label = 'Collect the item' },
},
{ title = 'Delivery Job', position = 'top-right' }
)`setQuestGoals(goals)`
Replaces all goals with a new array.
`updateQuest(index, done)`
Updates the done state of a single goal by its 1-based index.
exports['amzn_uikit']:updateQuest(1, true) -- mark first goal done`advanceQuest()`
Marks the next incomplete goal as done.
`setQuestPosition(position)`
Changes the tracker position to 'top-right' or 'top-left' while it is open.
`hideQuest()`
Hides the quest tracker.
`isQuestOpen()` → `boolean, string, string`
Returns open, title, position.
Previews
GLASS
