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

***

[SixL client API](../../../README.md) / [game/audio](../README.md) / GameMp

# Interface: GameMp

The game functions, grouped by section: `mp.game.clock.getHours()`, `mp.game.audio.getMusicPlaytime()` ...
Each section is declared in its own file; this interface only collects them.

## Example

```ts
const hour = await mp.game.clock.getHours();
```

## Properties

### audio

> **audio**: [`GameAudioMp`](GameAudioMp.md)

The audio functions: scenes, speech, radio stations and slow motion.

#### Example

```ts
mp.game.audio.getMusicPlaytime();
```

***

### cam

> **cam**: [`GameCamMp`](../../cam/interfaces/GameCamMp.md)

The gameplay camera: its position, rotation and field of view.

#### Example

```ts
mp.game.cam.getGameplayCamFov();
```

***

### clock

> **clock**: [`GameClockMp`](../../clock/interfaces/GameClockMp.md)

The game clock and calendar.

#### Example

```ts
mp.game.clock.getHours();
```

***

### decorator

> **decorator**: [`GameDecoratorMp`](../../decorator/interfaces/GameDecoratorMp.md)

Decorators: named values kept on entities.

#### Example

```ts
mp.game.decorator.decorExistOn(vehicle.handle, 'locked');
```

***

### dlc

> **dlc**: [`GameDlcMp`](../../dlc/interfaces/GameDlcMp.md)

Add-on content: the loading screen state.

#### Example

```ts
mp.game.dlc.getIsLoadingScreenActive();
```

***

### entity

> **entity**: [`GameEntityMp`](../../entity/interfaces/GameEntityMp.md)

Any entity: its state, position, health and appearance, and changes to them.

#### Example

```ts
mp.game.entity.getHealth(ped.handle);
```

***

### event

> **event**: [`GameEventMp`](../../event/interfaces/GameEventMp.md)

Shocking events and decision makers.

#### Example

```ts
mp.game.event.suppressShockingEventsNextFrame();
```

***

### fire

> **fire**: [`GameFireMp`](../../fire/interfaces/GameFireMp.md)

Fires and explosions.

#### Example

```ts
mp.game.fire.getNumberOfFiresInRange(0, 0, 72, 15);
```

***

### graphics

> **graphics**: [`GameGraphicsMp`](../../graphics/interfaces/GameGraphicsMp.md)

Graphics: particle effects, decals, timecycle modifiers, tracked points, photos and the screen.

#### Example

```ts
mp.game.graphics.getScreenAspectRatio();
```

***

### hud

> **hud**: [`GameHudMp`](../../hud/interfaces/GameHudMp.md)

The heads-up display: blips, the minimap, the waypoint and the busy spinner.

#### Example

```ts
mp.game.hud.isWaypointActive();
```

***

### interior

> **interior**: [`GameInteriorMp`](../../interior/interfaces/GameInteriorMp.md)

Interiors: their ids, memory, prop sets and rooms.

#### Example

```ts
mp.game.interior.getInteriorAtCoords(0, 0, 72);
```

***

### itemset

> **itemset**: [`GameItemsetMp`](../../itemset/interfaces/GameItemsetMp.md)

Item sets: groups of items under one handle.

#### Example

```ts
mp.game.itemset.createItemset(true);
```

***

### localization

> **localization**: [`GameLocalizationMp`](../../localization/interfaces/GameLocalizationMp.md)

The language the game is set to.

#### Example

```ts
mp.game.localization.getCurrentLanguage();
```

***

### misc

> **misc**: [`GameMiscMp`](../../misc/interfaces/GameMiscMp.md)

The miscellaneous functions, `mp.game.misc`.

#### Example

```ts
const wind = await mp.game.misc.getWindSpeed();
```

***

### network

> **network**: [`GameNetworkMp`](../../network/interfaces/GameNetworkMp.md)

The network functions, `mp.game.network`.

#### Example

```ts
const ms = await mp.game.network.getTime();
```

***

### object

> **object**: [`GameObjectMp`](../../object/interfaces/GameObjectMp.md)

The object functions, `mp.game.object`.

#### Example

```ts
const exists = await mp.game.object.doesPickupExist(pickup);
```

***

### pad

> **pad**: [`GamePadMp`](../../pad/interfaces/GamePadMp.md)

The control functions, `mp.game.pad`.

#### Example

```ts
const jumping = await mp.game.pad.isControlPressed(0, 22);
```

***

### pathfind

> **pathfind**: [`GamePathfindMp`](../../pathfind/interfaces/GamePathfindMp.md)

The road and navigation functions, `mp.game.pathfind`.

#### Example

```ts
const onRoad = await mp.game.pathfind.isPointOnRoad(0, 0, 70);
```

***

### ped

> **ped**: [`GamePedMp`](../../ped/interfaces/GamePedMp.md)

The ped functions, `mp.game.ped`.

#### Example

```ts
const dead = await mp.game.ped.isFatallyInjured(ped);
```

***

### physics

> **physics**: [`GamePhysicsMp`](../../physics/interfaces/GamePhysicsMp.md)

The physics functions, `mp.game.physics`.

#### Example

```ts
mp.game.physics.activate(object);
```

***

### player

> **player**: [`GamePlayerMp`](../../player/interfaces/GamePlayerMp.md)

The local player functions, `mp.game.player`.

#### Example

```ts
const wanted = await mp.game.player.getWantedLevel();
```

***

### script

> **script**: [`GameScriptMp`](../../script/interfaces/GameScriptMp.md)

The script and thread functions, `mp.game.script`.

#### Example

```ts
const running = await mp.game.script.doesScriptExist('freemode');
```

***

### shapetest

> **shapetest**: [`GameShapetestMp`](../../shapetest/interfaces/GameShapetestMp.md)

The shape test functions, `mp.game.shapetest`.

#### Example

```ts
const handle = await mp.game.shapetest.startShapeTestLosProbe(0, 0, 70, 0, 10, 70, 4);
```

***

### streaming

> **streaming**: [`GameStreamingMp`](../../streaming/interfaces/GameStreamingMp.md)

The streaming functions, `mp.game.streaming`.

#### Example

```ts
mp.game.streaming.requestModel('sultan');
```

***

### task

> **task**: [`GameTaskMp`](../../task/interfaces/GameTaskMp.md)

The task functions, `mp.game.task`.

#### Example

```ts
mp.game.task.taskClearLookAt(ped);
```

***

### vehicle

> **vehicle**: [`GameVehicleMp`](../../vehicle/interfaces/GameVehicleMp.md)

The vehicle functions, `mp.game.vehicle`.

#### Example

```ts
const engine = await mp.game.vehicle.getEngineHealth(vehicle);
```

***

### water

> **water**: [`GameWaterMp`](../../water/interfaces/GameWaterMp.md)

The water functions, `mp.game.water`.

#### Example

```ts
const height = await mp.game.water.getWaterHeight(0, 0, 70);
```

***

### weapon

> **weapon**: [`GameWeaponMp`](../../weapon/interfaces/GameWeaponMp.md)

The weapon functions, `mp.game.weapon`.

#### Example

```ts
const { ammo } = await mp.game.weapon.getMaxAmmo(ped, '<weapon name>');
```
