I made a script which will close the inventory of a player if they click the
outside part of the GUI (the dark stuff)
It works, but sometimes I accidentaly click it, and it will close the GUI for me, and I'll have to re open it. Is it possible to make it so you have to click it twice, before the GUI closes?
I tried to make it possible with variables, but it is not good with variables, because if the server crashes or something, the variables won't get deleted. Also i'm sure there is a better way to do it.
So if anyone knows, then please help me, and I can maybe make it into a resource, and give you a shoutout in the post.
outside part of the GUI (the dark stuff)
code_language.skript:
on inventory click:
if "%clicked item%" is "<none>":
close player's inventory
It works, but sometimes I accidentaly click it, and it will close the GUI for me, and I'll have to re open it. Is it possible to make it so you have to click it twice, before the GUI closes?
I tried to make it possible with variables, but it is not good with variables, because if the server crashes or something, the variables won't get deleted. Also i'm sure there is a better way to do it.
So if anyone knows, then please help me, and I can maybe make it into a resource, and give you a shoutout in the post.