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 gui becomes stealable if you spam the gui

Discussion in 'Skript' started by perryoo11, Mar 27, 2020.

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

    perryoo11 Member

    Joined:
    Mar 27, 2020
    Messages:
    2
    Likes Received:
    0
    Hey,

    here is the code:

    issue:
    i use player heads where poeple can right click on to open a gui (https://i.imgur.com/YJUfQ0R.png)
    that opens for example shop (https://i.imgur.com/z7RiL5E.png), select boss and rewards.

    but if i open and close it ~5 times in a row the gui becomes stealable:


    topics i have tried:
    https://forums.skunity.com/threads/skquery-gui-stealable-issues.10003/
    https://forums.skunity.com/threads/how-can-i-get-inventory-name-in-1-14-4.10301/

    but i'm not really booking any success.
    everytime i click on my inventory it returns this in the console:

    [13:43:01] [Server thread/ERROR]: [Skript] In 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, Only if this inventory has an InventoryHolder may it be used in this state.
     
    #1 perryoo11, Mar 27, 2020
    Last edited: Mar 30, 2020
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Yep, this isn't news. This is why for the past few years we have been telling people to NOT use SkQuery GUIS.
    We literally say this 100s of times a week on discord. 50% of people ignore us.

    Fine example right here why we say not to use them.
    Either use TuSKe GUIs or vanilla GUIs
     
  3. perryoo11

    perryoo11 Member

    Joined:
    Mar 27, 2020
    Messages:
    2
    Likes Received:
    0
    i fixed it already.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...