by-not/not_taskbar
Dynamic TaskBar HUD system for SA-MP and open.mp with dynamic-height descriptions, sprite icons, and progress2 bars.
Adiciona os arquivos de include dele, com as bibliotecas de que depende, ao compilador Pawn no seu navegador, prontos para incluir num script.
README.md
not_taskbar
Language: English | Español
Dynamic visual TaskBar HUD system for SA-MP and open.mp, displayed in the bottom-right corner with title, dynamic-height description, sprite icon, time label, and auto-colored progress bar (progress2).
Features
- Multiple simultaneous taskbars per player with independent slots.
- Dynamic box height calculated from wrapped description lines.
- Automatic progress bar color thresholds (green / yellow / red) or custom colors.
- Real-time updates for progress, max progress, time, description, and icon.
- Automatic cleanup on
OnPlayerConnectandOnPlayerDisconnect.
Requirements
<a_samp><progress2>by Southclaws
Installation
#include <a_samp>
#include <progress2>
#define MAX_TASKBAR 3 // Optional (default: 3)
#include <not_taskbar>
Quick Start
new taskid = ShowTaskBar(playerid, "~y~Delivery", "Deliver the package to LS", "05:00", 100, "LD_GRAV:timer");
UpdateTaskBarProgress(playerid, taskid, 50);
UpdateTaskBarTime(playerid, taskid, "02:30");
HideTaskBar(playerid, taskid);
API Summary
ShowTaskBar, HideTaskBar, HideAllTaskBars, UpdateTaskBarProgress, UpdateTaskBarMaxProgress, UpdateTaskBarTime, UpdateTaskBarDescription, UpdateTaskBarIcon, SetTaskBarColor, IsTaskBarActive, GetActiveTaskBarsCount, GetTaskBarProgress.
Credits
- Written and refactored by not.
- Progress bar rendering via progress2 by Southclaws.
- Character width table by Nero_3D (
td-string-width).
License
Released under the MIT License.
gtasahudopenmppawnsamptextdraw
Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página