Chat.say buttons not workingFixed
Pretty much what the title says. So for example I have a button set up like this.
"2": {
      "adminOnly": false,
      "ButtonImage": "https://i.imgur.com/K6ubOpN.png",
      "CloseUI": true,
      "command": "chat.say 0 /tp",
      "name": null,
      "permission": null
    },​
But clicking the button just spits out the dreaded True in chat.
Are you using any chat plugins? An outdated chat plugin will cause issues with the chat.
I have the most recent BetterChat. I'll try pulling the others (mute, mentions, toggle etc) and see if that helps.
Anything using "chat.add" in it that isn't updated.
I tried pulling all those and still had the same result :(
In the plug-in source file
Change all "chat.say" to "chat.say 0"
RICK
In the plug-in source file
Change all "chat.say" to "chat.say 0"

Thank you thank you thank you. I had to do this before in another plugin. No idea why I didn't think to do this here. I need to go to sleep. lol

5b6defbe66328.jpg thepiercedweirdo

Thank you thank you thank you. I had to do this before in another plugin. No idea why I didn't think to do this here. I need to go to sleep. lol

Good night, sweet dreams.

since the update the chat command does not work anymore. I've already tried changing it to chat.say [Global] but did not work
    "1": {
      "adminOnly": false,
      "ButtonImage": null,
      "CloseUI": true,
      "command": "chat.say [Global] /s",
      "name": "RP Shop",
      "permission": null
    },​

it only stands then "Text" in the chat

Merged post

this is the error i get 
 Failed to call hook 'IOnPlayerChat' on plugin 'RustCore v2.0.4346' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000fb] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​
5dbf4079da922.jpg reini199615
    "1": {
      "adminOnly": false,
      "ButtonImage": null,
      "CloseUI": true,
      "command": "chat.say [Global] /s",
      "name": "RP Shop",
      "permission": null
    },​

it only stands then "Text" in the chat

"chat.say 0 /s"

still not
5dbf4079da922.jpg reini199615
still not
RICK
In the plug-in source file
Change all "chat.say" to "chat.say 0"

You need to do both. The plugin needs an update. But this is a pretty quick fix. Just open it in notepad++ search for chat.say and add a space zero to each one. There's probably a faster way to do this but I don't know it :P

Merged post

My bad. Looks like it already got patched :)
5b6defbe66328.jpg thepiercedweirdo
My bad. Looks like it already got patched :)

Yeah, I have no plans of maintaining it though long-term. :P

There are a lot of other UI plugins available now, so this one likely won't remain if it doesn't get a long-term maintainer.

still a no 

{
  "buttons": {
    "0": {
      "adminOnly": false,
      "ButtonImage": null,
      "CloseUI": true,
      "command": "chat.say 0 /shop",
      "name": "$ shop",
      "permission": null
    },
    "1": {
      "adminOnly": false,
      "ButtonImage": null,
      "CloseUI": true,
      "command": "chat.say 0 /s",
      "name": "RP Shop",
      "permission": null
    },
    "10": {
      "adminOnly": false,
      "ButtonImage": null,
      "CloseUI": true,
      "command": "chat.say 0 /bank",
      "name": "bank",
      "permission": null
    },
    "11": {
      "adminOnly": false,
      "ButtonImage": null,
      "CloseUI": true,
      "command": "backpack.open",
      "name": "bagpack",
      "permission": null
    },
    "12": {
      "adminOnly": false,
      "ButtonImage": "https://i.imgur.com/K6ubOpN.png",
      "CloseUI": true,
      "command": "chat.say 0 /tp",
      "name": null,
      "permission": null
    },
@reini199615, did you update the plugin?
Locked automatically