samp.directory
← Scripts y librerías

by-not/not_taskbar

Dynamic TaskBar HUD system for SA-MP and open.mp with dynamic-height descriptions, sprite icons, and progress2 bars.

Librería★ 0actualizado ayerMITPawn
Abrir en GitHub
Probar en el compilador de Pawn →

Añade sus archivos include, con las librerías de las que depende, al compilador de Pawn de tu navegador, listos para incluirlos en un 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 OnPlayerConnect and OnPlayerDisconnect.

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 se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha

by-not/not_taskbar: Librería de SA-MP | samp.directory