SANDBOX:PopulatePropMenu

From Garry's Mod
Jump to: navigation, search
 SANDBOX:PopulatePropMenu( )

Description

This hook makes the engine load the spawnlist text files. It calls spawnmenu.PopulateFromEngineTextFiles by default.

Examples

Example

Source code for this hook.

function GM:PopulatePropMenu()

	-- This function makes the engine load the spawn menu text files.
	-- We call it here so that any gamemodes not using the default 
	-- spawn menu can totally not call it.
	spawnmenu.PopulateFromEngineTextFiles()

end


Personal tools
Navigation