gui previous page

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

    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!

DEVILHARRT

Member
Dec 2, 2023
2
0
1
I want to know how to open an existing gui rather than a new gui with the code that opens the gui in gui

on inventory click:
if name of event-inventory contain "&9&lfoodshop2":
if clicked raw slot is 50:
open chest with 6 row named "&b&lfoodshop3" to player
 
try something like that:


Code:
command /settest:
    trigger:
        set metadata tag "test" of player to chest inventory with 6 rows named "§ctest"
        set slot 45 of metadata tag "test" of player to arrow named "back"
       
       
        set metadata tag "test2" of player to chest inventory with 6 rows named "§ctest2"
        set slot 53 of metadata tag "test2" of player to arrow named "next"
       
command /test:
    trigger:
        open (metadata tag "test" of player) to player
       
on inventory click:
    if event-inventory = (metadata tag "test" of player):
        cancel event
        if index of event-slot is 45:
            open (metadata tag "test2" of player) to player
    if event-inventory = (metadata tag "test2" of player):
        cancel event
        if index of event-slot is 53:
            open (metadata tag "test" of player) to player