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

perryoo11

Member
Mar 27, 2020
2
0
0
33
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.
 
Last edited:
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
 
Status
Not open for further replies.