Garry's Mod Wiki

ControlPanel:FillViaFunction

  ControlPanel:FillViaFunction( function func )

Description

Calls the given function with this panel as the only argument. Used by the spawnmenu to populate the control panel.

Arguments

1 function func
A function that takes one argument: