Hey so, I’m looking to add chat boxes around my chat like this & i would like it to go on all messages that go into the chat:
I sort of understanding some sector to it, however, the way that the chat is coded just doesn’t make 100% sense to me, so that’s why I’m seeing if anyone could help:
I’m guessing you would add something like this:
RegisterCommand('me', function(source, args, rawCommand)
local playerName = GetPlayerName(source)
local msg = rawCommand:sub(4)
TriggerClientEvent('chat:addMessage', -1, {
template = '<div style="padding: 0.5vw; margin: 0.5vw; background-color: rgba(100, 79, 142, .6);">* {0} {1}</div>',
args = { playerName, msg }
})
end, false)```
But this is just a command I would need it to be for all messages... if anyone could help would be amazing!