An extension for ScavengeSurvive/inventory that uses SA:MP dialog menus for player interaction with their inventory items.
Simply install to your project:
sampctl package install ScavengeSurvive/inventory-dialog
Include in your code and begin using the library:
#include <inventory-dialog>
Documentation is in the source code.
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
.