spawnmenu.GetPropTable

From Garry's Mod
Jump to: navigation, search
 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

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.
}
Personal tools
Navigation