Skip to main content

Quick Start

Functions

Display a timeline with tasks to the player.
Parameters:
  • data (table) - Timeline configuration object (see Options)
Only one timeline can be active at a time. Showing a new timeline will automatically hide any existing timeline.
Hide a specific timeline.
Parameters:
  • id (string) - Unique identifier of the timeline to hide
Timeline state is not preserved when hidden. You must pass the full configuration when showing again.
Update one or multiple task statuses.
Parameters (Single Task):
  • timelineId (string) - Unique identifier of the timeline
  • taskId (string) - Unique identifier of the task to update
  • status (string) - New status: 'pending', 'active', 'completed', 'failed'
Parameters (Multiple Tasks):
  • timelineId (string) - Unique identifier of the timeline
  • tasksArray (table) - Array of task objects with id and status properties
Add a new task to an existing timeline.
Parameters:
  • timelineId (string) - Unique identifier of the timeline
  • task (table) - Task object (see Tasks)
Update timeline properties (title, description, icon, etc.).
Parameters:
  • timelineId (string) - Unique identifier of the timeline
  • updates (table) - Object containing properties to update (see Options)
Get the ID of the currently active timeline.
Returns:
  • timelineId (string | nil) - The ID of the active timeline, or nil if none is active

Configuration

Options

string
required
Unique timeline identifier
string
required
Timeline title (supports markdown)
string
Timeline description (supports markdown)
string
default:"right-center"
Timeline position on screenAvailable options: 'top-left', 'top-center', 'top-right', 'left-center', 'center', 'right-center', 'bottom-left', 'bottom-center', 'bottom-right'
string
FontAwesome icon class
string
default:"#71717A"
Icon color (hex or CSS color name)
string
Icon animation typeAvailable options: 'spin', 'spinPulse', 'spinReverse', 'pulse', 'beat', 'fade', 'beatFade', 'bounce', 'shake'
table
required
Array of task objects (see Tasks)
number
default:"1.0"
Background opacity (0.0-1.0)

Tasks

Each task object in the tasks array supports:
string
required
Unique task identifier
string
required
Task display text (supports markdown)
string
Task description (supports markdown)
string
required
Task statusAvailable options: 'pending', 'active', 'completed', 'failed'
string
FontAwesome icon class
Overrides default status icon
string
Icon color (hex or CSS color name)
Automatically determined by task status if not specified
string
Icon animation type
Custom task icons do not auto-animate unless iconAnimation is explicitly set

Examples

Preview

Timeline Preview