Returns the numeric index corresponding to a chat message type. These indices are used in the default UI to identify lines printed in a chat window, allowing (for example) their color to be changed to match changes in the player's color preferences.

See also Chat functions.


index = GetChatTypeIndex("messageGroup")


  • messageGroup - Token identifying a message type (string, chatMsgType)


  • index - Numeric index of the chat type (number)