Garry's Mod Wiki

Garry's Mod Wiki

  Panel DForm:CheckBox( string label, string convar )


Adds a DCheckBoxLabel onto the DForm.

This will run DCheckBoxLabel:OnChange when being added. This is caused by Panel:SetConVar being used when this function is used. To avoid this, use DForm:AddItem with a DCheckBoxLabel.


1 string label
The label to be set next to the check box
2 string convar
The console variable to change when this is changed


1 Panel
The created DCheckBoxLabel

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...