Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 818 Bytes

iconvar.md

File metadata and controls

53 lines (34 loc) · 818 Bytes

iconvar

Functions

FindVar

Parameters:

Name Type Description
szVariableName string console variable name

Returns:

Type Description
CConVar* console variable pointer

Code:

local sv_cheats = IConVar.FindVar("sv_cheats")

ConsolePrintf

Parameters:

Name Type Description
szFormat string text to output into game console

Code:

IConVar.ConsolePrintf("text to print")

ConsoleColorPrintf

Parameters:

Name Type Description
colText color color of output text
szFormat string text to output into game console

Code:

IConVar.ConsoleColorPrintf(Color.new(0, 255, 255), "text to print")