Im trying to do a !sell command and I alr have the gui and everything done I just cant seem to make it pop the gui upon message as the chat is like blocking the gui from ever being poped open.
How to other people manage to make it so the gui only pops when you also close the chat? I cant seem to make it work.
My script
else if (command === "!sell") {
player.sendMessage("§6Close the chat to view the sell menu!");
system.run(() => {
showItemsToBeSold(player);
});
}
Please help me fix this if you can! Would make me able to fix other !commands for my lifesteal :)