Stream and display in-game chat #12

Open
opened 2026-03-17 00:51:43 +00:00 by kit · 0 comments
Owner

Display the in-game chat feed in the web spectator client.

Server side

  • Hook into GMod's chat system (PlayerSay hook or GM:PlayerSay)
  • Send chat messages to connected spectators as JSON: {"type": "chat", "player": "name", "text": "message", "team": false}
  • Include player name, message text, and whether it's team chat

Client side

  • Chat overlay panel (bottom-left, matching GMod's chat position)
  • Messages fade out after a few seconds
  • Scrollable history
  • Player names colored (could use team color if available)
  • Optional: toggle chat visibility

Notes

  • This is a relatively simple feature — mostly a new message type and a UI panel
  • Could also stream other server messages (kills, joins/leaves) in the same feed
Display the in-game chat feed in the web spectator client. ## Server side - Hook into GMod's chat system (`PlayerSay` hook or `GM:PlayerSay`) - Send chat messages to connected spectators as JSON: `{"type": "chat", "player": "name", "text": "message", "team": false}` - Include player name, message text, and whether it's team chat ## Client side - Chat overlay panel (bottom-left, matching GMod's chat position) - Messages fade out after a few seconds - Scrollable history - Player names colored (could use team color if available) - Optional: toggle chat visibility ## Notes - This is a relatively simple feature — mostly a new message type and a UI panel - Could also stream other server messages (kills, joins/leaves) in the same feed
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kit/gmod-web-stream#12
No description provided.