Garry's Mod Wiki

SANDBOX:PopulatePropMenu

  SANDBOX:PopulatePropMenu()

Description

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

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