Need help making a CreateClientConvar Boolean

I’m trying to get a checkbox to turn something true or false, but I can’t figure out what checking it does.

When I set ischecked to true, it says that it was expecting a string, not a boolean, but checking a box linked to a string does nothing.

Any help is appreciated :slight_smile:


TOOL.Name = "Example"

TOOL.Command = nil
TOOL.ConfigName = "" 


TOOL.ClientConVar["ischecked"] = "true"

 
function TOOL.BuildCPanel( panel )
 panel:AddControl("Header", { Text = "Example", Description = "For the love of god help me" })
 
  panel:AddControl("checkbox", {
    Label = "Toggle On/Off",
    Command = "example_ischecked"
  })

end

[editline]16th January 2017[/editline]

nevermind, setting the ConVar = “” created a boolean :slight_smile: