GetConVarDefault Function

Retrieves the default string value of a console variable.

int GetConVarDefault(Handle convar, char[] value, int maxlength)


Handle convar

Handle to the convar.

char[] value

Buffer to store the default value of the convar.

int maxlength

Maximum length of string buffer.

Return Value

Number of bytes written to the buffer (UTF-8 safe).


Invalid or corrupt Handle.