Agency Docs
Standalone

Agency-Progressbar एक्सपोर्ट और API

आधुनिक एनिमेटेड प्रोग्रेस बार, ग्लास-मॉर्फिज़्म UI, फ़्रेमवर्क की स्वतः पहचान, 4 दृश्य थीम (Modern, Neon, Minimal.

v2.0.4मुफ़्त5 पेज

01Client Exports

एक्सपोर्टविवरण
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

एक्सपोर्टविवरण
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.

03इवेंट

नामसाइडविवरण
Agency:Progressbar:LoadSettingsClientLoads per-player UI settings (position, color, scale, style) from DB into the client.
agency-progressbar:client:startClientStarts the progress bar on the receiving client with the supplied data.
agency-progressbar:client:stopClientStops the active progress bar with a completion flag.
agency:consumables:useFoodClientInventory bridge to consume a food item (animation + secured server apply).
agency:consumables:useDrinkClientInventory bridge to consume a drink item (animation + secured server apply).
Agency:Progressbar:SaveSettingsServerValidates and persists the player's progress bar UI settings to the DB.
agency-progressbar:server:startServerServer-side trigger to start a progress bar on a target (or self).
agency-progressbar:server:stopServerServer-side trigger to stop a progress bar on a target (or self).
agency:reload:requestServerValidates ammo/weapon/item before granting a reload to the requesting player.
agency:consumables:applyServerValidates inventory, removes one item and applies hunger/thirst gains.

इस पेज के बाद भी अटके हैं? आगे हमारा सपोर्ट संभाल लेगा।