DMultiChoice.GetOptionText
From GMod Wiki
| Function | |
| Syntax | DMultiChoice:GetOptionText( Integer id ) |
| Description: | |
| Returns the text set to the option with given id. | |
| Returns: | String |
| In Object: | DMultiChoice |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DMultiChoice.GetOptionText]DMultiChoice.GetOptionText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Gets the text set to id option 1 |
|---|---|
| Used on | |
| Code | print( myMultiChoicePanel:GetOptionText( 1 ) ) |
| Output | prints the text set to the 1st option in myMultiChoicePanel |
Additional notes
- The Integer id iterates from 1.