Garry's Mod Wiki

Revision Difference

killicon.Add#566038

<function name="Add" parent="killicon" type="libraryfunc"> <description>Creates new kill icon using a texture.</description> <realm>Client</realm> <file line="30-L37">lua/includes/modules/killicon.lua</file> <args> <arg name="class" type="string">Weapon or entity class</arg>⤶ <arg name="texture" type="string">Path to the texture</arg>⤶ <arg name="color" type="table">Color of the kill icon</arg>⤶ <arg name="class" type="string">Weapon or entity class.</arg>⤶ <arg name="texture" type="string">Path to the texture.</arg>⤶ <arg name="color" type="table">Color of the kill icon.</arg>⤶ </args> </function> <example> <description>Creates default killicon.</description> <code>killicon.Add( "default", "HUD/killicons/default", Color( 255, 80, 0, 255 ) )</code> </example>