Revision Difference
Global.GenerateSpawnlistFromPath#547725
<function name="GenerateSpawnlistFromPath" parent="Global" type="libraryfunc">⤶
<description>This function seems to be responsible for props of a category. Internally uses <page>Global.AddPropsOfParent</page>⤶
</description>⤶
<realm>Client</realm>⤶
<file line="24-L41">gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/gameprops.lua</file>⤶
<args>⤶
<arg name="folder" type="string">the folder to search for models</arg>⤶
<arg name="path" type="string">The path to look for the files and directories in. See <page text="this list">File_Search_Paths</page> for a list of valid paths.</arg>⤶
<arg name="name" type="string">The Spawnmenu Category name</arg>⤶
<arg name="icon" type="string" default="icon16/page.png">The Spawnmenu Category Icon to use</arg>⤶
<arg name="appid" type="number">The AppID which is needed for the Content</arg>⤶
</args>⤶
</function>⤶
⤶
<example>⤶
<description>Creates a Example Category</description>⤶
<code>⤶
GenerateSpawnlistFromPath("models/player", "GAME", "Example")⤶
</code>⤶
</example>