• DermaCheckBoxLabel Not changing con var
    2 replies, posted
I'm currently trying to make a checkbox that toggles a con var I made. Current when I turn the check box off it sets the con var to false but I can't get it to turn it back to true forcing me to do it manually. Any hel would be greatly appreciated. Here's my code: local convartion = GetConVar("sound_toggle") SoundToggle = vgui.Create( "DCheckBoxLabel" ) SoundToggle:SetParent( frame ) SoundToggle:SetPos( 25, 500 ) SoundToggle:SetText( "Toggle Sound" ) SoundToggle:SetConVar( "sound_toggle" ) end
And where are you attempting to change it automatically?
SoundToggle:SetConVar( "sound_toggle" )
Sorry, you need to Log In to post a reply to this thread.