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

***

[SixL client API](../../README.md) / [cameras](../README.md) / GameplayCameraMp

# Interface: GameplayCameraMp

The gameplay camera as `mp.cameras.gameplay` gives it: where the player's camera is, as the latest frame has it.

## Remarks

SixL only: read only, so it has the getters of [CameraMp](CameraMp.md) and no setters.

## Example

```ts
const fov = mp.cameras.gameplay.getFov();
```

## Properties

### handle

> `readonly` **handle**: `number`

Always `0`: the gameplay camera has no game handle of its own.

#### Example

```ts
const handle = mp.cameras.gameplay.handle;
```

***

### type

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

Always `'camera'`.

#### Example

```ts
if (cam.type === 'camera') { }
```

## Methods

### doesExist()

> **doesExist**(): `boolean`

Always `true`: the gameplay camera always exists.

#### Returns

`boolean`

`true`.

#### Example

```ts
if (mp.cameras.gameplay.doesExist()) { }
```

***

### getCoord()

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

The gameplay camera's position, as the latest frame has it.

#### Returns

[`Vector3`](../../common/interfaces/Vector3.md)

The position in metres.

#### Example

```ts
const pos = mp.cameras.gameplay.getCoord();
```

***

### getFov()

> **getFov**(): `number`

The gameplay camera's vertical field of view, as the latest frame has it.

#### Returns

`number`

The field of view in degrees.

#### Example

```ts
const fov = mp.cameras.gameplay.getFov();
```

***

### getRot()

> **getRot**(`rotationOrder?`): [`Vector3`](../../common/interfaces/Vector3.md)

The gameplay camera's rotation, as the latest frame has it.

#### Parameters

##### rotationOrder?

`number`

Accepted for RAGE MP compatibility; ignored.

#### Returns

[`Vector3`](../../common/interfaces/Vector3.md)

The rotation in degrees: `x` the pitch (positive looks up), `y` the roll, `z` the yaw.

#### Example

```ts
const rot = mp.cameras.gameplay.getRot(2);
```
