chat.AddText
From GMod Wiki
| Function | |
| Syntax |
chat.AddText( Color color OR String text OR Number OR Player player, ... ) Where is this used? |
| Description: | |
| Adds text to the chat window with support for color. | |
| Returns: | nil |
| Part of Library: | chat |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Chat.AddText]Chat.AddText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- An unlimited number of string, Color or Player parameters can be provided.
- Any other types will be ignored, such as number, table, vector. Use tostring to convert to strings.
- Alpha channels are ignored and do not need to be provided.
- Color and string values do not need to be in any order.
- Player object will automatically enter the player's name and team color. Current text color is not changed; following text is displayed in color prior to the Player object.