DMultiChoice.ChooseOptionID
From GMod Wiki
| Function | |
| Syntax | Panel:ChooseOptionID( Number ID ) |
| Description: | |
| Selects an option from the list by its ID | |
| Returns: | nil |
| In Object: | DMultiChoice |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DMultiChoice.ChooseOptionID]DMultiChoice.ChooseOptionID [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | This will get the 4th option in myPanel |
|---|---|
| Used on | |
| Code | myPanel:ChooseOptionID( 4 ) |
| Output | Selects the 4th option in myPanel and sets it in the text. |
Additional Notes
- Giving an ID that does not exist will cause an error about SetText expecting a string.