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.

We advise against using this. It may be changed or removed in a future update. This is dumb. Just call the builder function directly.

Arguments

1 function func
The builder function.
Function argument(s):
1 ControlPanel panelToPopulate - No description given.