samp.directory
← Skripte und Bibliotheken

Coystark/MenuStore

Lib created for internal use on the most popular SA-MP server in Latin America.

Bibliothek★ 13aktualisiert Feb. 2026Keine LizenzPawnsampctl
Auf GitHub öffnen

Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.

Mit sampctl installieren

sampctl package install Coystark/MenuStore

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

Verwendet von 1 Paket

README.md

MenuStore

MenuStore is a lightweight SA-MP include that lets you create configurable in-game stores using Textdraws.

Features

  • Create multi-page item stores with descriptions and previews
  • Built-in cart with limited slots and total value display
  • Optional easyDialog support if available
  • Localizable strings (English by default; PT-BR and Spanish provided)

Preview

Quick links

Documentation https://sampforum.blast.hk/showthread.php?tid=644913

Quick start

  1. Place the include in your includes folder and add #include <MenuStore> to your script.
  2. Add items with MenuStore_AddItem(...) before showing a store to a player.
  3. Show the store using MenuStore_Show(playerid, StoreID, "Store Name");

Example (very short)

  1. Add items:
MenuStore_AddItem(playerid, 1, 342, "Grenade", 500, "Throw to explode.", 200);
  1. Show the store:
MenuStore_Show(playerid, Weapon_Shop, "Weapon Shop");
  1. Implement the store callback (see examples/newStore_example.pwn for a full sample):
Store:Weapon_Shop(playerid, response, itemid, modelid, price, amount, itemname[])

Notes

  • The include provides optional Portuguese and Spanish default text when MENUSTORE_PTBR or MENUSTORE_SPANISH are defined before including.
  • Keep MS_MAX_ITEMS and other macros configurable in your project if needed.

pawn

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

Coystark/MenuStore: SA-MP Bibliothek | samp.directory