• ply:PrintMessage change color?
    4 replies, posted
is it possible to change the color of a message that ply:PrintMessage puts into chat, or even to put multiple colors in the same line?
chat.AddText() you can set the color in that
[QUOTE=recox998;40065730]chat.AddText() you can set the color in that[/QUOTE] will that wok with only sending the message to 1 player?
Use ply:SendLua([[chat.AddText( Color( <color code here> ), "Message", ... ) )]]) if your writing this script server side. chat.AddText is a client function. use [[ ]] so you can use "" and '' without having to escape them. You can also just use ' ' or "" and escape characters. It's a mater of preference.
[QUOTE=thelastpenguin;40065854]Use ply:SendLua([[chat.AddText( Color( <color code here> ), "Message", ... ) )]]) if your writing this script server side. chat.AddText is a client function. use [[ ]] so you can use "" and '' without having to escape them. You can also just use ' ' or "" and escape characters. It's a mater of preference.[/QUOTE] thanks, mate. I'll apply it tomorrow.
Sorry, you need to Log In to post a reply to this thread.