DMultiChoice.ChooseOption

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:ChooseOption( String Option text, Number index ID )
Description:
Selects an option from the list by its text and ID
Returns: nil
In Object: DMultiChoice
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DMultiChoice.ChooseOption]DMultiChoice.ChooseOption [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis will get the "pork" option at index 2 in myPanel
Used onNewerClient.png
Code
myPanel:ChooseOption( "pork", 2 )
OutputSelects the "pork" option at index 2 in myPanel and sets it in the text.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox