#Force player to click button in menu

1 messages · Page 1 of 1 (latest)

toxic torrent
#

Hi there. I was wondering if it is somehow possible to "force" a player to click a button in a menu. Im making a custom rewards menu for an event on my server and would like to make sure that the player chooses a reward in the menu as it is paramount to the follow-up event.

So basically if the player closes the menu withouthaving selected a reward then the menu just opens again

plain shell
#

Disable all buttons except the one you want players to click, when they try to close the menu. run the action to open menu again

toxic torrent
plain shell
#

What I mean is that to put open your gui's command here, to prevent any close

toxic torrent
#

but the player can still bypass that by pressing esc

plain shell
toxic torrent
toxic torrent
#
close-command:
  - "[ACTIONTYPE] close"

Is this correct?

toxic torrent
# plain shell Strange
close-command:
  - "[CLOSE]"
close-command:
  - "[close]"

These dont work either. Which is the correct input?

#

Runs the command(s) you set when the player close the menu by clicking an item that have the close action ([close]).

plain shell
#

😂

toxic torrent
plain shell
#

So, have you put a action like run command here?

#

[console] dm open xxx xxx

#

If it doesn't work, the only plugin that have the function of denying menu close is TrMenu.

#

Sorry I cant help

peak dagger
#

it is not possible to do this

#

and it will not be added as a feature either