> For the complete documentation index, see [llms.txt](https://lua.legacy.fatality.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lua.legacy.fatality.win/csgo/interfaces/engine-client.md). Agents can also search and read this documentation through its [MCP server](https://lua.legacy.fatality.win/~gitbook/mcp).

# Engine Client

csgo.interface\_handler:get\_engine\_client( )

## Functions

### client\_cmd\_unrestricted

executes console command without restrictions

`engine_client:client_cmd_unrestricted( command )`

| Parameter | Data type |       Description      |
| :-------: | :-------: | :--------------------: |
|  command  |   string  | command to be executed |

### client\_cmd

execute console command

`engine_client:client_cmd( command )`&#x20;

| Parameter | Data type |       Description      |
| :-------: | :-------: | :--------------------: |
|  command  |   string  | command to be executed |

### is\_in\_game

returns true if you are in game

`engine_client:is_in_game( )`

### is\_connected

returns true if you are connected to a server

`engine_client:is_connected( )`

### get\_ping

returns your total ping as an integer

`engine_client:get_ping( )`

### get\_map\_name

returns the name of the map you are on.

`engine_client:get_map_name( )`

### in\_thirdperson

returns true if you are in third person

`engine_client:in_thirdperson( )`
