Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 5s ago· Viewing build 6698 (Sep 17 2026), not the latest

player_disconnect

game event

Declared in core.gameevents

Named in the code or data of server, client.

Deadworks (C#), as PlayerDisconnectEvent
[GameEventHandler("player_disconnect")]
public HookResult OnPlayerDisconnect(PlayerDisconnectEvent args) {
	// args.Userid, args.Reason, args.Name, args.Networkid, args.Xuid, args.PlayerID
	return HookResult.Continue;
}

Fields

FieldTypeDeadworks propertyValve's comment
useridplayer_controller
Userid CBasePlayerController?
user ID on server
reasonshort
Reason int
see networkdisconnect enum protobuf
namestring
Name string
player name
networkidstring
Networkid string
player network (i.e steam) id
xuiduint64
Xuid ulong
steam id
PlayerIDshort
PlayerID int

History

  1. 6722–6745changed
    • + ever_fully_connected bool
  2. 6696–6701first dumped