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
Copy file name to clipboardExpand all lines: README.md
+36-3Lines changed: 36 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,9 @@ _(A list of fonts can be found on the workshop page.)_
51
51
52
52
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/).
53
53
54
-
### For developers
54
+
## For developers
55
+
56
+
### Hook: CanEmbedCustomChat
55
57
56
58
You can prevent links from certain players from embedding, by using the `CanEmbedCustomChat` hook on the **client side**:
-- If you return two colors, the player name will have a gradient/glow effect.
107
+
ifply:IsSuperAdmin() then
108
+
returnColor( 255, 0, 0 ), Color( 0, 100, 255 )
109
+
end
110
+
111
+
-- Return nothing to keep the default behaviour from Custom Chat.
112
+
end )
113
+
```
114
+
115
+
### Hook: CustomChatBlockInput
116
+
117
+
You can return `true` on this hook to block the "open chat" button(s). It runs on the **client side**.
118
+
119
+
### Hook: CustomChatHideJoinMessage
120
+
121
+
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.
122
+
90
123
## Contributing
91
124
92
125
Before you open a pull request, please read [this](https://github.com/StyledStrike/gmod-custom-chat/blob/master/.github/pull_request_template.md).
0 commit comments