Garry's Mod Wiki

ConVar:SetBool

  ConVar:SetBool( boolean value )

Description

Sets a ConVar's value to 1 or 0 based on the input boolean. This can only be ran on ConVars created from within Lua.

Arguments

1 boolean value
Value to set the ConVar to.