Garry's Mod Wiki

DTextEntry:SetValue

  DTextEntry:SetValue( string text )

Description

Sets the text of the DTextEntry and calls DTextEntry:OnValueChange.

The text of the DTextEntry only changes if it's not currently being typed in. If you would rather set the text regardless, use Panel:SetText.

Arguments

1 string text
The value to set.