Garry's Mod Wiki

SANDBOX:ContentSidebarSelection

  SANDBOX:ContentSidebarSelection( Panel parent, Panel node )

Description

Called when player selects an item on the spawnmenu sidebar at the left.

Arguments

1 Panel parent
The panel that holds spawnicons and the sidebar of spawnmenu
2 Panel node
The item player selected