Garry's Mod Wiki

SANDBOX:PopulateNPCs

  SANDBOX:PopulateNPCs( Panel pnlContent, Panel tree, Panel node )

Description

Called by the spawnmenu when the NPCs tab is generated

Creating an error in this Hook will result in a completely broken NPCs Tab

Arguments

1 Panel pnlContent
The SpawnmenuContentPanel
2 Panel tree
The ContentNavBar tree from the SpawnmenuContentPanel
3 Panel node
The old Spawnlists