Garry's Mod Wiki

SpawnmenuContentPanel:CallPopulateHook

  SpawnmenuContentPanel:CallPopulateHook( string hookname )

Description

Changes the Spawnmenu category to search in

Arguments

1 string hookname
The Hook name

Example

local ctrl = vgui.Create( "SpawnmenuContentPanel" ) ctrl:CallPopulateHook( "PopulateWeapons" )