Changing colour of ChatPrint?

Is it possible to change the colour of the text in ChatPrint? If so, how?

If you’re talking Clientside

**[Chat.AddText

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Chat.AddText)**

How do I use that with a timer?

**[Timer.Create

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Timer.Create)**

I tried this:

[lua]local announs = {
“one”,
“two”
}

timer.Create(“TTTAnnouncements”, 1, 0, function()
if (CLIENT) then
chat.AddText(Color(25, 25, 25, 255), “(ATTEN)” … table.Random(announs))
end
end)[/lua]

But not working.

[lua]if ( CLIENT ) then
timer.Create( “ChatAdvert”, 10, 0, function()
chat.AddText( Color( 255, 0, 0, 255 ), “This is red” );
end );
end;[/lua]

So I can’t use table.Random?

[lua]advert = {
“Hi”,
“Bye”
}

if ( CLIENT ) then
timer.Create( “ChatAdvert”, 10, 0, function( p )
chat.AddText( Color( 255, 0, 0, 255 ), table.Random( advert ) );
end );
end;[/lua]

Lol. You don’t need “;” to end a line in lua.

Does not hurt anybody and I guess he is used to place semicolons because of other languages.

Lol.