XP Bar
`showXP(data)`
Flashes the XP/level bar at the top of the screen and hides it after a timeout.
| Field | Type | Default | Description |
|---|---|---|---|
current |
number |
0 |
Current XP value |
maximum |
number |
0 |
Maximum XP value |
label |
string |
'' |
Label shown beside the bar (e.g. 'Level 12') |
timeout |
number |
2500 |
Milliseconds before the bar hides. 0 = stays visible |
exports['amzn_uikit']:showXP({
current = 350,
maximum = 1000,
label = 'Level 4',
timeout = 3000,
})Previews
GLASS
