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

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Goose

Supporter
Nov 23, 2019
439
33
28
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?
 
Last edited:
Code:
on inventory click:
  inventory name of player's current inventory = "your gui name"
  clicked inventory is not player's inventory
  cancel event
  clicked item = ban hammer:
    open some gui
 
Code:
on inventory click:
  inventory name of player's current inventory = "your gui name"
  clicked inventory is not player's inventory
  cancel event
  clicked item = ban hammer:
    open some gui
Thank you! I appreciate it.
 
  • Like
Reactions: Govindas
Status
Not open for further replies.