Garry's Mod Wiki

Revision Difference

spawnmenu.CreateContentIcon#518047

<function name="CreateContentIcon" parent="spawnmenu" type="libraryfunc"> <description>Creates a new content icon.</description> <realm>Client</realm> <args> <arg name="type" type="string">The type of the content icon.</arg> <arg name="parent" type="Panel">The parent to add the content icon to.</arg> <arg name="data" type="table">The data to send to the content icon in &lt;page&gt;spawnmenu.AddContentType&lt;/page&gt;</arg>⤶ <arg name="data" type="table">The data to send to the content icon in <page>spawnmenu.AddContentType</page></arg>⤶ </args> <rets> <ret name="" type="Panel">The created content icon, if it was returned by <page>spawnmenu.AddContentType</page></ret> </rets> </function>