DNumPad.GetValue
From GMod Wiki
| Function | |
| Syntax | Panel:GetValue( ) |
| Description: | |
| Returns the integer of DNumPad. | |
| Returns: | integer Value |
| In Object: | Panel |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DNumPad.GetValue]DNumPad.GetValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Returns the value select in a NumPad. |
|---|---|
| Used on | |
| Code | local NumPad= vgui.Create( "DNumberWang" ) NumPad:SetValue(5) print(NumPad:GetValue()) |
| Output | Returns "5" in the console. |