[**SixL client API**](../../README.md)

***

[SixL client API](../../README.md) / [browser](../README.md) / GuiMp

# Interface: GuiMp

The game's user interface: `mp.gui`: the mouse cursor and the built-in chat.

## Example

```ts
mp.gui.cursor.show(true, true);
```

## Properties

### chat

> **chat**: [`GuiChatMp`](GuiChatMp.md)

The built-in chat: lines from the server and from scripts, the input line (T opens it, Enter sends).

#### Example

```ts
mp.gui.chat.push('!{#FFCC00}Welcome!');
```

***

### cursor

> **cursor**: [`GuiCursorMp`](GuiCursorMp.md)

The mouse cursor over the pages.

#### Example

```ts
mp.gui.cursor.visible = true;
```

## Methods

### execute()

> **execute**(`code`): `void`

Runs JavaScript in the built-in page (the built-in chat's page), shown or hidden.

#### Parameters

##### code

`string`

The code.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.gui.execute('document.body.style.opacity = 0.8');
```
