#gui
1 messages · Page 1 of 1 (latest)
command gui:
permission : op
trigger:
set {_} to chest inventory with name "admin settings"
set slot 19 of {_} to player head
open {_} to player
on inventory click:
if name of event-inventory is "admin settings":
if index of event-slot = 19:
cancel event
make player say "/vanish"
``` Next time you want help i will help if you show me something you learnt from this, and i will keep helping if you keep learning 🙂
Tell me for erros i use phone so some may come
Thankss
I’m try it be
Yw
Rn
Skript reload Modgui.sk
[16:46:35 INFO]: [Skript] Reloading Modgui.sk...
[16:46:35 INFO]: Line 10: (Modgui.sk)
[16:46:35 INFO]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
[16:46:35 INFO]: Line: if index of event-slot = 19:
[16:46:35 INFO]:
[16:46:35 INFO]: Line 2: (Modgui.sk)
[16:46:35 INFO]: Unexpected entry 'permission : op'. Check that it's spelled correctly, and ensure that you have put all code into a trigger.
[16:46:35 INFO]: Line: permission : op
[16:46:35 INFO]:
[16:46:35 INFO]: [Skript] Encountered 1 error while reloading Modgui.sk! (9ms)
1 sec
command gui:
permission: op
trigger:
set {_} to chest inventory with name "admin settings"
set slot 19 of {_} to player head
open {_} to player
on inventory click:
if name of event-inventory is "admin settings":
if index of event-slot = 19:
cancel event
make player say "/vanish"
Finished, used phone, the indent sucks.
Thanks it works but if I want to give the item a custom name how do I?
command ModGUI:
permission: Mod.Gui
trigger:
set {_} to chest inventory with name "Mod Panel"
set slot 19 of {_} to player head
open {_} to player
on inventory click:
if name of event-inventory is "Mod Panel":
if index of event-slot = 19:
cancel event
make player say "/vanish"
@toxic tree would that be possible
Name:
set slot 19 of {_} to player head named "hello world!"
Name & Lore:
set slot 19 of {_} to player head named "hello world!" with lore "yo"
Also, never use ai, its outdated to 2021
Ight
Ty
Ik
My friend gave me a Skript useing ai
And he copied it all
Not just the code
Well use sk hub before asking me, its on google it helps
Just search in it "inventory name"