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

***

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

# Interface: MarkerMp

A marker: a shape drawn in the world, one that the server created for this client or one a script made with
`mp.markers.new`.

## Remarks

Drawn by SixL's overlay: the shape's type, colour, scale, direction and rotation are shown. The properties of a marker
the server made are the server's: assigning them changes nothing. The properties of a marker a script made can be
assigned, and the overlay follows.

## Example

```ts
mp.markers.forEach((marker) => mp.console.logInfo(String(marker.scale)));
```

## Properties

### position

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

The marker's position, in metres.

#### Example

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

***

### scale

> **scale**: `number`

The marker's scale, as it was set.

#### Example

```ts
const size = marker.scale;
```

***

### visible

> **visible**: `boolean`

Whether the marker is shown. A hidden marker is not drawn.

#### Example

```ts
if (marker.visible) { }
```

## Methods

### destroy()

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

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

#### Returns

`void`

#### Example

```ts
marker.destroy();
```
