QueryClientConVar

Last Updated2014-12-10
Created At2014-12-10

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

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

Parameters

int client
Player index.
const char[] cvarName
Name of client convar to query.
A function to use as a callback when the query has finished.
any value
Optional value to pass to the callback function.

Return Value

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