QueryClientConVar Function

Starts a query to retrieve the value of a client's console variable.

QueryCookie QueryClientConVar(int client, const char[] cvarName, ConVarQueryFinished callback, any value)

Parameters

int client

Player index.

const char[] cvarName

Name of client convar to query.

ConVarQueryFinished callback

A function to use as a callback when the query has finished.

any value

Optional value to pass to the callback function.

Return Value

A cookie that uniquely identifies the query. Returns QUERYCOOKIE_FAILED on failure, such as when used on a bot.