Garry's Mod Wiki

Garry's Mod Wiki

  any Panel:GetValue()


Returns the value the panel holds.

In engine is only implemented for CheckButton, Label and TextEntry as a string.

This function is limited to 8092 Bytes. If using DTextEntry, use Panel:GetText for unlimited bytes.


1 any
The value the panel holds.


Returns the string typed in a TextEntry.

local TextEntry = vgui.Create( "TextEntry" ) TextEntry:SetText( "Hello world!" ) print( TextEntry:GetValue() )
Output: "Hello world!"

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...