Garry's Mod Wiki


Panel:SetActionFunction( function func )


We advise against using this. It may be changed or removed in a future update. Does nothing at all.

Used in Button to call a function when the button is clicked and in Slider when the value changes.


1 function func
Function to call when the Button is clicked or the Slider value is changed.

Arguments given are:

  • Panel self - The panel itself
  • string action - "Command" on button press, "SliderMoved" on slider move.
  • number val - The new value of the Slider. Will always equal 0 for buttons.
  • number zed - Always equals 0.

Page Links

Special Pages



Render Time: 92ms

DB GetPage 55
Generate Html 14
SaveChanges (1) 12
Render Body 0
Render Sidebar 9