Garry's Mod Wiki

derma.SkinHook

  any derma.SkinHook( string type, string name, Panel panel, any vararg1 = nil, any vararg2 = nil, any vararg3 = nil, any vararg4 = nil )

Description

Calls the specified hook for the given panel

Arguments

1 string type
The type of hook to run
2 string name
The name of the hook to run
3 Panel panel
The panel to call the hook for
4 any vararg1 = nil
First parameter for the panel hook. i.e. width of the panel for Paint hooks.
5 any vararg2 = nil
Second parameter for the panel hook. i.e. height of the panel for Paint hooks.
6 any vararg3 = nil
Third parameter for the panel hook.
7 any vararg4 = nil
Fourth parameter for the panel hook.

Returns

1 any
The returned variable from the skin hook