samp.directory
← Scripts y librerías

imshooter/pawn-plus-menu

Menu PawnPlus is an include made with TextDraws, with the same design as native menus, offering support for a larger item listing and UP/DOWN navigation detection.

Librería★ 3actualizado ene 2026Sin licenciaPawn
Abrir en GitHub

Este repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.

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

📜 Description

This menu does not use a traditional page system.

Instead, it behaves similarly to GTA V menus:

  • The menu displays a fixed number of visible rows (for example, 8 items at a time).
  • If more than 8 items are added, the menu automatically scrolls vertically as the selection moves.
  • Items beyond the visible limit are positioned “below” the current view and smoothly come into view when navigating up or down.
  • The selection cursor remains within the visible area while the list content shifts internally.

📦 Installation

Simply download the include file and place it in your qawno/include folder.

#include <pp-menu>

🛠️ Functions

AddListMenuItem(playerid, column, const item[])

  • Adds an item to the specified menu column.
  • Items are queued internally until the menu is shown.

ShowAsyncListMenu(playerid, const title[], Float:x, Float:y, Float:width, bool:freeze = true, bool:selectionSound = true)

  • Displays the menu asynchronously and returns a Task.
  • The task resolves when the menu is closed, either by selection or cancel.

DestroyListMenu(playerid)

  • Immediately destroys the current menu and clears its internal state.

IsListMenuVisible(playerid)

  • Returns whether the menu is currently visible for the player.

⚡ Quick Example

task_yield(1);

// 1. Add items
AddListMenuItem(playerid, 0, "Item A");
AddListMenuItem(playerid, 1, "Description A");

AddListMenuItem(playerid, 0, "Item B");
AddListMenuItem(playerid, 1, "Description B");

// 2. Show menu and await response
new responses[E_ASYNC_MENU_DATA];
await_arr(responses) ShowAsyncListMenu(playerid, "My Menu", 20.0, 120.0, 200.0);

// 3. Handle result
printf("Response: %d, Item: %d", responses[E_ASYNC_MENU_RESPONSE], responses[E_ASYNC_MENU_LISTITEM]);

📸 In-Game Look

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