Get player character name or ID in chat

So I downloaded a chat but I want the messages to be sended with the character name or the player id, anyone has an idea of how to do it?

Also, how would I translate the commands to be instad of for example “dice” to be in my server language?

Thanks

if this is server side code then edit the line 161 and 180 to local sendername = player
it will display the player id on the message instead of his name.

Okay many thanks! In case that I want the character name, how should I do it?