Garry's Mod Wiki

Garry's Mod Wiki

  string util.FilterText( string str, number context = TEXT_FILTER_UNKNOWN, Player player = nil )


Filters given text using Steam's filtering system. The function will obey local client's Steam settings for chat filtering:

In some cases, especially in a chatbox, messages from some players may return an empty string if the context argument used for filtering is TEXT_FILTER_CHAT and if the local player has blocked the sender of the message on Steam.


1 string str
String to filter.
2 number context = TEXT_FILTER_UNKNOWN
Filtering context. See TEXT_FILTER enum.
3 Player player = nil
Used to determine if the text should be filtered according to local user's Steam chat filtering settings.


1 string
The filtered text based on given settings.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...