Trouble With Inventory Click Event

Discussion in 'Plugin Development' started by gmgymnast, Jul 5, 2019.

  1. Offline


    I am trying to make a back arrow to go back to the previous inventory that is called kit selector but when I click on the arrow in the inventory Archer Upgrades nothing happens and the item just gets picked up.

    Here is my code:

    Attached Files:

  2. Offline


    @gmgymnast Cancel the event so the player's can't take up the item. Can you show us your 'MainGUI(Player)' method?
  3. Offline


    The arrow is the item that takes you back to the MainGUI so I really don't care if it gets picked up as long as it does not go into the inventory.

    But here is my code from MainGUI and the click event from that gui is the Kit Selector part of the first posts code.

    Here is my code from the Archer Upgrade GUI if you need that too

    Attached Files:

    Last edited by a moderator: Jul 5, 2019

Share This Page