Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 762 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 762 Bytes

Inventory Dialog

sampctl

An extension for ScavengeSurvive/inventory that uses SA:MP dialog menus for player interaction with their inventory items.

Installation

Simply install to your project:

sampctl package install ScavengeSurvive/inventory-dialog

Include in your code and begin using the library:

#include <inventory-dialog>

Usage

Documentation is in the source code.

Testing

To run tests:

sampctl package run

And connect to localhost:7777 and try it out. H opens the inventory, Y adds an item, F picks up. /lockinv prevents the inventory from being opened by returning 1 on OnPlayerOpenInventory.