# IEngineClient

## Vector2 GetScreenSize();

Returns size of the game window.

## void ClientCmd(string);

Inserts szCmdString into the command buffer as if it was typed by the client to his/her console.

## player\_info\_t GetPlayerInfo();

Fill in the player info structure for the specified player index (name, model, etc.)

## int GetLocalPlayer();

Get the entity index of the local player

## QAngle GetViewAngles();

## string GetMaxClients();

Retrieve the current game's maxclients setting.

## void ClientCmdUnrestricted(string);

Client cmd unrestricted.

## bool IsConnected();

## string GetLevelName();

Get the level name of the current map.

## string GetLevelNameShort();

Get the level short name of the current map.

## string GetMapGroupName();

Get the map group name.

## void ExecuteClientCmd(string);

Inserts szCmdString into the command buffer as if it was typed by the client to his/her console.

## int GetAppId();

Returns app id.

## int GetEngineBuildNumber();

Returns engine build number.

## string GetGameDirectory();

Get the current game directory.

## float GetLastTimestamp();

Get the exact server timesstamp ( server time ) from the last message received from the server.

## Vector2 GetMouseDelta(bool bIgnoreNextMouseDelta);

Return mouse delta.

## INetChannelInfo\* GetNetChannelInfo();

Returns INetChannelInfo pointer.

## int GetPlayerForUserId(int userid);

Retrieve the player entity number for a specified userID.

## string GetProductVersionString();

Returns csgo version in string.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://neverlose.gitbook.io/neverlose/methods/iengineclient.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
