Garry's Mod Wiki

DForm:Button

  Panel DForm:Button( string text, string concommand, ... )

Description

Adds a DButton onto the DForm

Arguments

1 string text
The text on the button
2 string concommand
The concommand to run when the button is clicked
3 vararg args = nil
The arguments to pass on to the concommand when the button is clicked

Returns

1 Panel
The created DButton