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!

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

right click event within a gui

Discussion in 'Requests' started by Galacticstar123, Jul 10, 2018.

  1. Galacticstar123

    Joined:
    Jun 6, 2018
    Messages:
    20
    Likes Received:
    0
  2. Dave

    Dave Active Member

    Joined:
    Jul 20, 2018
    Messages:
    228
    Likes Received:
    9
  3. SlickNicky10

    SlickNicky10 Member

    Joined:
    Jun 2, 2018
    Messages:
    4
    Likes Received:
    0
    Do not use SkQuery for GUIs. Use TuSKe for guis instead.


    Code (Skript):
    1. command /gui:
    2.     trigger:
    3.         create a gui with virtual chest with %number% rows named "%string%":
    4.             make gui slot %string% with %itemstack%:
    5.                 set {_action} to "%gui-click-action%"
    6.                 {_action} is "left mouse button":
    7.                     your code here
    8.                 {_action} is "right mouse button":
    9.                     your code here
    10.         open last gui to player
     

Share This Page

Loading...