Getting value from chat

Discussion in 'Plugin Development' started by Rival54548545, Apr 14, 2024.

Thread Status:
Not open for further replies.
  1. Offline


    Hello, I need get value from chat after clicking item in menu (inventory). How I can do this?
  2. Offline

    timtower Administrator Administrator Moderator

    @Rival54548545 What value in chat? If you click something then there won't be a value.
  3. Offline


    @Rival54548545 Assuming you want player input from the chat, you can listen for the AsyncPlayerChatEvent. You can cancel the event to prevent the input from being broadcast. Additionally, to only allow for the input after some state change (e.g, clicking an item in an inventory), you can toggle a global boolean value; this includes the presence or lack of in collection.
Thread Status:
Not open for further replies.

Share This Page