Skip to content

ax.actionBar

Source: gamemode/framework/interface/cl_actionbar.lua

Action bar system for displaying circular progress indicators with timers.

Documented functions: 4

Functions


ax.actionBar:GetRemainingTime()

Get remaining time for the active action bar

Realm: client

Returns

  • number: Remaining time in seconds (0 if no active bar)

ax.actionBar:IsActive()

Check if an action bar is currently active

Realm: client

Returns

  • bool: Whether an action bar is active

ax.actionBar:Start(label, duration, onComplete, onCancel)

Start displaying an action bar

Realm: client

Parameters

Name Type Description
label string Label text to display (default: "Processing...")
duration number Duration in seconds
onComplete function Optional callback when action completes
onCancel function Optional callback when action is cancelled

ax.actionBar:Stop(cancelled)

Stop the current action bar

Realm: client

Parameters

Name Type Description
cancelled bool Whether the action was cancelled (triggers onCancel callback)