Garry's Mod Wiki

DTextEntry:OnValueChange

  DTextEntry:OnValueChange( string value )

Description

Called when the text changes of the DTextEntry are applied. (And set to the attached console variable, if one is given)

See also DTextEntry:OnChange for a function that is called on every text change, even if the console variable is not updated.

You should override this function to define custom behavior when the text changes.

This method is called:

Arguments

1 string value
The DTextEntry text.