[Include] Player Inventory System 0.2b (Menu + Save / Load)
#9

Quote:
Originally Posted by -zriptarusk
EDIT:
Wirdosport. Since this is a library, I don't think theres a way of knowing when the player left the menu without you calling a function.
Please call the 'DestroyPlayerInventoryMenu()' in 'OnPlayerExitedMenu'. This removes the menu from the memory and sets the player controllable.

Is the Item ID the same?
Because, it is supposed to only add the quantity if the itemid is the same.
I did end up using DestroyPlayerInventoryMenu, and it does the job.

As for the Item ID, I am fairly sure it was the same, as I only used the AddItemToPlayerInventory(); in 1 place for each individual package, and only used item id's 0 1 and 2. Is it ok to use id 0?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)