Code | local convar1 = CreateClientConVar("__testconvar_bool_1",1)
local convar2 = CreateClientConVar("__testconvar_bool_2","1")
local convar3 = CreateClientConVar("__testconvar_bool_3","true")
local convar4 = CreateClientConVar("__testconvar_bool_4","arbitrary")
local convar5 = CreateClientConVar("__testconvar_bool_5",0)
local convar6 = CreateClientConVar("__testconvar_bool_6","0")
local convar7 = CreateClientConVar("__testconvar_bool_7","false")
local convar8 = CreateClientConVar("__testconvar_bool_8","")
Msg("ConVar 1: "..tostring(convar1:GetBool()).."\n")
Msg("ConVar 2: "..tostring(convar2:GetBool()).."\n")
Msg("ConVar 3: "..tostring(convar3:GetBool()).."\n")
Msg("ConVar 4: "..tostring(convar4:GetBool()).."\n")
Msg("ConVar 5: "..tostring(convar5:GetBool()).."\n")
Msg("ConVar 6: "..tostring(convar6:GetBool()).."\n")
Msg("ConVar 7: "..tostring(convar7:GetBool()).."\n")
Msg("ConVar 8: "..tostring(convar8:GetBool()).."\n") |