Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 15s ago· Viewing build 6745 (Oct 02 2026)

player_chat

game event

Declared in core.gameevents

Named in the code or data of server.

Deadworks (C#), as PlayerChatEvent
[GameEventHandler("player_chat")]
public HookResult OnPlayerChat(PlayerChatEvent args) {
	// args.Teamonly, args.Userid, args.Playerid, args.Text
	return HookResult.Continue;
}

Fields

FieldTypeDeadworks propertyValve's comment
teamonlybool
Teamonly bool
true if team only chat
useridplayer_controller
Userid CBasePlayerController?
chatting player
playeridshort
Playerid int
chatting player ID
textstring
Text string
chat text

History

  1. 6696–6745first dumped