Panel.SetConVar

From GMod Wiki

(Redirected from DCheckBoxLabel.SetConVar)
Jump to: navigation, search
Function
Syntax Panel:SetConVar( String ConVar )
Description:
Sets a ConVar for the Panel.
Returns: nil
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.SetConVar]Panel.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 changing an option on the element it will set the net_graph's variable to the new value.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox