Help with checkboxes.

Hey facepunch. This may seem like a trivial question, and I bet it is, but I can’t figure out how to make checkboxes that set themselves to be checked or unchecked according to whatever convar they toggle.
Thanks in advance.

Are you talking about this?

**[Panel.SetConVar

http://wiki.garrysmod.com/favicon.ico](http://bananatree.im/wiki/wiki.garrysmod.com/index7b66.html?title=DCheckBox.SetConVar)**

No, I know how to make checkboxes set a convar. Lets say I have said convar set to 0 by default. When I start up my script, all the checkboxes are checked, even the ones that are supposed to be off by default. If it would be more of use to you, I will go write some basic little vgui thing showing you how I go about doing it, and you can tell me what I am doing wrong.

You mean DCheckBox.SetChecked ?

Try that or DCheckBox.SetValue

Also, DCheckBox control