Garry's Mod Wiki


  GM:AddDeathNotice( string attacker, number attackerTeam, string inflictor, string victim, number victimTeam )


Adds a death notice entry.

You cannot use hook.Add on this hook yet.

Issue Tracker: 2611


1 string attacker
The name of the attacker
2 number attackerTeam
The team of the attacker
3 string inflictor
Class name of the entity inflicting the damage
4 string victim
Name of the victim
5 number victimTeam
Team of the victim


Shows a suicide death notice in Sandbox.

local ply = Entity( 1 ) GAMEMODE:AddDeathNotice( ply:GetName(), ply:Team(), nil, ply:GetName(), ply:Team() )