On my server we use esx_rpchat and it doesn’t seem to pick up any of the chat events that are past/created through that.
We already have a bot that brings most of the server events and local chat to the staff area on our discord but that doesn’t bring /ooc and we where hoping that this would solve that. It hasn’t.
Is there a way I can get this to work with esx_rpchat or am I at a loss here and need to go back to the drawing board ?
2 Things, One chat wont transmit at all. What chat does this work with??? && secondly while it says they are connecting, is there a way to pull their SteamID ; License & IP if I wanted?
That worked, thank you @Flatracer, now to my second issue. is there a command I can add to the code on connecting players to show me their license, steam id, and ip? I had a issue where people will start something, rdm, or use mod menu and leave quickly and I cant catch anything from them.
Using 1.5.1 and having an issue with chats not coming up. Should I go to another previous one? OOC, 911 and a few other commands still are not coming up.
cfx> Error running system event handling function for resource DiscordBot: citiz
en:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/server.lua:
179: bad argument #2 to ‘gsub’ (string/function/table expected)
stack traceback:
[C]: in function ‘string.gsub’
server/server.lua:179: in function ‘ReplaceSpecialCommand’
server/server.lua:89: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scriptin
g/lua/scheduler.lua:174>
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scriptin
g/lua/scheduler.lua:138>