chat.AddText
chat.AddText( ... )
Description
Adds text to the local player's chat box (which only they can read).
Arguments
1 vararg arguments
The message to be added to the chat box.
Arguments can be:
- table - Color. Will set the color for all following strings until the next Color argument.
- string - Text to be added to the chat box.
- Player - Adds the name of the player in the player's team color to the chat box.
- any - Any other type, such as Entity will be converted to string and added as text.
These argument types can be combined to create formatted messages.
Example
Prints the player's name and current weapon to their chat area.
Output: 

Garry's Mod
Rust
Steamworks
Wiki Help