Cvar
csgo.interface_handler:get_cvar( )
Last updated
csgo.interface_handler:get_cvar( )
Last updated
-- Get the cvar interface
local Cvar = csgo.interface_handler:get_cvar()
-- Get the convar we want
local ConvarName = "cl_righthand"
local Convar = Cvar:find_var(ConvarName)
-- Check if the we found the convar (nil if not found)
if not Convar then
return
end
-- Print the name and value to the console
print(string.format("%s = %i", ConvarName, Convar:get_int()))
-- Set our value to 0
Convar:set_int(0)