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

***

[SixL client API](../../README.md) / [dummies](../README.md) / DummyEntityMp

# Interface: DummyEntityMp

A dummy entity of the server's scripts: a type and shared variables, no position.

## Remarks

Partial: given by the server to every client, with its variables before `dummyEntityCreated`. Not yet
confirmed in the game.

## Example

```ts
mp.events.add('dummyEntityCreated', (dummyType, dummy) => mp.console.logInfo(String(dummy.getVariable('owner'))));
```

## Properties

### dummyType

> `readonly` **dummyType**: `number`

The dummy's type: the number the server's script made it with.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
if (dummy.dummyType === 42) { }
```

***

### id

> `readonly` **id**: `number`

The dummy's id: the server's (the same as `remoteId`).

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
const id = dummy.id;
```

***

### remoteId

> `readonly` **remoteId**: `number`

The server's id of the dummy.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
const id = dummy.remoteId;
```

***

### type

> `readonly` **type**: `string`

Always `'dummy'`.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
if (dummy.type === 'dummy') { }
```

## Methods

### getVariable()

> **getVariable**\<`T`\>(`value`): `T`

A shared variable the server's script set on the dummy.

#### Type Parameters

##### T

`T` = `any`

#### Parameters

##### value

`string`

The variable's name.

#### Returns

`T`

Its value, or `undefined` when the server never set it.

#### Remarks

Partial: the value the server sent last. Not yet confirmed in the game.

#### Example

```ts
const owner = dummy.getVariable('owner');
```
