Garry's Mod Wiki

DLabel:SetToggle

  DLabel:SetToggle( boolean toggleState )

Description

Sets the toggle state of the label. This can be retrieved with DLabel:GetToggle and toggled with DLabel:Toggle.

In order to use toggle functionality, you must first call DLabel:SetIsToggle with true, as it is disabled by default.

Arguments

1 boolean toggleState
The toggle state to be set.