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.

XGui | Gui API

Discussion in 'APIs' started by mert_0ut, Oct 28, 2021.

  1. mert_0ut

    mert_0ut Member

    Joined:
    Oct 26, 2021
    Messages:
    0
    Likes Received:
    0
    • Depends addon: Skript Reflect

    Code (Text):
    1. command x:
    2.     trigger:
    3.         create chest inventory 2 rows title "xyz" to player
    4.         set gui player slot of 3,17 item grass named "x" with action not close
    5.         set gui player slot of 4 item sand named "y" with action close
    6.         set gui player slot of 5 item diamond_sword named "x" with action close and run player command "cmd"
    7.         set gui player slot of 6 item iron_sword named "x" with action close and run console command "say hello"
    8.         set gui player slot of 7 item wooden_sword with lore "y" with action player command "cmd"
    9.         set gui player slot of 8 item golden_sword named "x" with lore "y" with action console command "say hello"
    10.         set gui player slot of 9 item golden_sword named "x" with lore "y" with action run function "functionname"(player, "hello")
    11.         set gui player slot of 10 item diamond_pickaxe named "x" with lore "y" with action close and run function "functionname"(player, "hello")

    Code (Text):
    1. - set {_x} to item slot of %number% from %player%'s virtual (gui|inventory)
    2. - set {_y} to title of %player%'s virtual (gui|inventory)
    3. - close %player%'s virtual (gui|inventory)
    4. - remove item slot of %number% from %player%'s virtual (gui|inventory)
     

Share This Page

Loading...