You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,7 +39,7 @@ A simple and customizable chat box that can format text, display images and emoj
23
39
24
40
---
25
41
26
-
###Text Formatting Options
42
+
## Text formatting
27
43
28
44
```
29
45
||Spoilers here||
@@ -40,20 +56,29 @@ $$rainbow text here$$
40
56
$255,0,0,0,100,255$(red-to-blue gradient text here)
41
57
```
42
58
43
-
###Fonts
59
+
## Fonts
44
60
45
61
You can change the font by typing **;fontname;** before the text.
46
62
_(A list of fonts can be found on the workshop page.)_
47
63
48
64
```;comic; This will be displayed as Comic Sans```
49
65
50
-
###Whitelisted Sites
66
+
## Whitelisted sites
51
67
52
68
By default, the chat box will only load pictures from trusted websites. You can open a pull request to add more, or send a request [here](https://steamcommunity.com/workshop/filedetails/discussion/2799307109/3272437487156558008/).
You can block specific text formatting types per-player on the client using the `CanFormatCustomChat` hook. Return `false` to prevent that formatting from being applied; the text will be shown as plain text instead.
103
+
104
+
```lua
105
+
hook.Add( "CanFormatCustomChat", "format_access_example", function( ply, formatType, value )
106
+
-- Return false to block this formatting for this player/message
You can return `true` on this hook to block the "open chat" button(s). It runs on the **client side**.
118
173
119
-
### Hook: CustomChatHideJoinMessage
174
+
### CustomChatHideJoinMessage
120
175
121
176
You can return `true` on this hook to dynamically prevent join/leave messages from showing up. It runs on the **client side**, and gives a `data` table as a argument, that contains the same keys given by the [player_connect_client](https://wiki.facepunch.com/gmod/gameevent/player_connect_client#members) hook.
0 commit comments