Garry's Mod Wiki

spawnmenu.GetPropTable

  table spawnmenu.GetPropTable()

Description

Returns a table of all prop categories and their props in the spawnmenu.

Note that if the spawnmenu has not been populated, this will return an empty table.

This will not return spawnlists created by addons, see spawnmenu.GetCustomPropTable for that.

Returns

1 table
Table of all the prop categories and props in the following format:
{ ["settings/spawnlist/001-construction props.txt"] = { name = "Construction Props", icon = "icon16/page.png", id = 1, parentid = 0, needsapp = "", contents = { { model = "models/Cranes/crane_frame.mdl", type = "model" } -- etc. }, } -- etc. }