Garry's Mod Wiki


The killicon library is used to add to and control the icons that appear in the top right of your screen when a player is killed.


killicon.Add( string class, string texture, table color )
Creates new kill icon using a texture.
killicon.AddAlias( string new_class, string existing_class )
Creates kill icon from existing one.
killicon.AddFont( string class, string font, string symbol, table color )
Adds kill icon for given weapon/entity class using special font.
killicon.Draw( number x, number y, string name, number alpha )
Draws a kill icon.
boolean killicon.Exists( string class )
Checks if kill icon exists for given class.
number, number killicon.GetSize( string name )
Returns the size of a kill icon.