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

***

[SixL client API](../../README.md) / [world-entities](../README.md) / TextLabelMp

# Interface: TextLabelMp

A text label: a line of text drawn at a position in the world, one that the server created for this client or one a
script made with `mp.labels.new`.

## Remarks

Drawn by SixL's overlay, facing the screen, within its draw distance. The properties of a label the server made are the
server's: assigning them changes nothing. The properties of a label a script made can be assigned.

## Example

```ts
mp.labels.forEach((label) => mp.console.logInfo(label.text));
```

## Properties

### color

> **color**: [`Array4d`](../../common/type-aliases/Array4d.md)

The text colour, as `[r, g, b, a]`, each 0..255.

#### Example

```ts
const rgba = label.color;
```

***

### drawDistance

> **drawDistance**: `number`

The distance, in metres, within which the label is drawn.

#### Example

```ts
const range = label.drawDistance;
```

***

### los

> **los**: `boolean`

Whether the label is hidden behind walls (line of sight).

#### Remarks

Partial: the overlay does not know the walls, so it draws the label whatever stands in front of it.

#### Example

```ts
if (label.los) { }
```

***

### position

> **position**: [`Vector3`](../../common/interfaces/Vector3.md)

The label's position, in metres.

#### Example

```ts
const where = label.position;
```

***

### text

> **text**: `string`

The label's text.

#### Example

```ts
const words = label.text;
```

## Methods

### destroy()

> **destroy**(): `void`

Removes a label a script made. Does nothing for a label the server made.

#### Returns

`void`

#### Example

```ts
label.destroy();
```
