Garry's Mod Wiki

DButton:SetDisabled

  DButton:SetDisabled( boolean disable )

Description

We advise against using this. It may be changed or removed in a future update. Use Panel:SetEnabled instead.

Sets whether or not the DButton is disabled.

When disabled, the button is greyed out and cannot be clicked.

Arguments

1 boolean disable
When true Enable the button, when false Disable the button.