"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. Chat.say buttons not workingFixed
Change all "chat.say" to "chat.say 0"
RICKIn 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
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.
"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 postthis 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 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"
reini199615
still not
RICKIn 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 postMy bad. Looks like it already got patched :)
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
}, - 1
- 2