GetClientAuthId Function

Retrieves a client's authentication string (SteamID).

bool GetClientAuthId(int client, AuthIdType authType, char[] auth, int maxlen, bool validate)

Parameters

int client

Player index.

AuthIdType authType

Auth id type and format to use.

char[] auth

Buffer to store the client's auth id.

int maxlen

Maximum length of string buffer (includes NULL terminator).

bool validate

Check backend validation status. DO NOT PASS FALSE UNLESS YOU UNDERSTAND THE CONSEQUENCES, You WILL KNOW if you need to use this, MOST WILL NOT.

Return Value

True on success, false otherwise.

Errors

If the client is not connected or the index is invalid.