Standalone
Agency-Progressbar Exports & API
Modern animated progress bar with glass-morphism UI, automatic framework detection, 4 visual themes (Modern, Neon.
v2.0.4Free5 Pages

01Client Exports
| Export | Description |
|---|---|
StartProgress(data: table) | Starts a progress bar with label, duration, theme, animation and onFinish/onCancel callbacks. |
StopProgress(completed: boolean) | Stops the active progress bar; passes completion state to onFinish. |
IsProgressActive() | Returns whether a progress bar is currently active. |
GetProgressPercentage() | Returns the current 0-100 completion percentage of the active bar. |
SetProgressTheme(theme: string) | Updates the live progress bar theme (e.g. 'modern'). |
SetProgressPosition(position: string) | Updates the live progress bar position on screen. |
TryReload(usedItem?: string) | Initiates a secured weapon reload flow (validates ammo type and item server-side). |
UseConsumable(itemName: string, isDrink: boolean) | Plays the eat/drink progress with animation for the named item. |
02Server Exports
| Export | Description |
|---|---|
StartProgressForPlayer(playerId: number, data: table) | Starts a progress bar on a specific player from the server. |
StopProgressForPlayer(playerId: number, completed?: boolean) | Stops the active progress bar for a specific player. |
StartProgressForAllPlayers(data: table) | Broadcasts a progress bar to every connected player. |
StopProgressForAllPlayers(completed?: boolean) | Stops the active progress bar on every connected player. |
03Events
| Name | Side | Description |
|---|---|---|
Agency:Progressbar:LoadSettings | Client | Loads per-player UI settings (position, color, scale, style) from DB into the client. |
agency-progressbar:client:start | Client | Starts the progress bar on the receiving client with the supplied data. |
agency-progressbar:client:stop | Client | Stops the active progress bar with a completion flag. |
agency:consumables:useFood | Client | Inventory bridge to consume a food item (animation + secured server apply). |
agency:consumables:useDrink | Client | Inventory bridge to consume a drink item (animation + secured server apply). |
Agency:Progressbar:SaveSettings | Server | Validates and persists the player's progress bar UI settings to the DB. |
agency-progressbar:server:start | Server | Server-side trigger to start a progress bar on a target (or self). |
agency-progressbar:server:stop | Server | Server-side trigger to stop a progress bar on a target (or self). |
agency:reload:request | Server | Validates ammo/weapon/item before granting a reload to the requesting player. |
agency:consumables:apply | Server | Validates inventory, removes one item and applies hunger/thirst gains. |