Trouble With Inventory Click Event

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

Thread Status:
Not open for further replies.
  1. Offline

    gmgymnast

    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:
    upload_2019-7-5_15-12-11.png
     

    Attached Files:

  2. Offline

    KarimAKL

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

    gmgymnast

    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
Thread Status:
Not open for further replies.

Share This Page