Since I see a lot of / chat cmds are still using the stringsplit I thought I should just post a more updated code for the same purpose.
RegisterCommand('nameThatYouWant', function(source, args, rawCommand)
local name = GetPlayerName(source) --Gets the player name, so the name of the player who did the cmds
local message = table.concat(args, ' ') -- this makes the string undefined
TriggerClientEvent('chatMessage', -1, 'Twitter' ..name, {255,0,0}, message) --I used twitter as an example
end) --If you add true or false like this: end, false or true) you are telling it to either do not use ace perms or do
I hope this was helpful