1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Open up different GUI when left clicking an item on a GUI

Discussion in 'Skript' started by Goose, Nov 24, 2019.

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

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    356
    Likes Received:
    17
    Hi! I am trying to make a custom moderation GUI for banning/warning/muting players, I wanted to know how I could open up a different GUI when I click on for example, player ban. Could you guys tell me how to do this and if possible, give me some code so I can get a better idea on what to do? Another problem I have is that I do not know how to make an item in a GUI be unstealable as well as make it execute a console command AND close the gui, could you guys help?
     
    #1 Goose, Nov 24, 2019
    Last edited: Nov 24, 2019
  2. Best Answer:
    Post #2 by Govindas, Nov 25, 2019
  3. Govindas

    Govindas Well-Known Member

    Joined:
    Feb 5, 2017
    Messages:
    77
    Likes Received:
    4
    Code (Text):
    1.  
    2. on inventory click:
    3.   inventory name of player's current inventory = "your gui name"
    4.   clicked inventory is not player's inventory
    5.   cancel event
    6.   clicked item = ban hammer:
    7.     open some gui
    8.  
     
  4. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    356
    Likes Received:
    17
    Thank you! I appreciate it.
     
    • Like Like x 1
Thread Status:
Not open for further replies.
Loading...