DMultiChoice.SetConVar

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:SetConVar( String ConVar )
Description:
Sets a ConVar for the Panel.
Returns: nil
In Object: DMultiChoice
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DMultiChoice.SetConVar]DMultiChoice.SetConVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis will Set the convar to net_graph on myPanel
Used onNewerClient.png
Code
myPanel:SetConVar( "net_graph" )
OutputUpon selecting an option it will set the net_graph's variable. Example options for the DMultiChoice would be 0, 1, 2 and 3


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox