---
name: "hostMission"
type: command
status: ok
groups: ["Multiplayer"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/hostMission
revid: 369139
updated: 2024-09-03T10:34:36Z
---

# hostMission

*Command · Multiplayer · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.55*

## Description

Host the multiplayer mission defined in the config class and opens the lobby with the scenario loaded. Must be called in UI action from a dialog.

## Syntax

```sqf
hostMission [configEntry, activeDisplay]
```

**Parameters:**

- `configEntry`: [Config](../topics/Config.md)
- `activeDisplay`: [Display](../topics/Display.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
hostMission [configFile >> "CfgMissions" >> "MPMissions" >> _scenarioClassName, _currentlyActiveDisplay];
```

### Example 2

Launch host mission dialog from a client on dedicated server in Arma 3:

```sqf
hostMission [
    configFile >> "CfgMissions" >> "MPmissions" >> "MP_COOP_m01",
    findDisplay 46
];
```

## See also

[playScriptedMission](../commands/playScriptedMission.md) · [playMission](../commands/playMission.md) · [createMPCampaignDisplay](../commands/createMPCampaignDisplay.md) · [createMissionDisplay](../commands/createMissionDisplay.md)

## Community notes

**.kju** — 2011-01-03

The command must be called in the main menu or something similar menu it seems.

<sub>Source: [BI Community Wiki — hostMission](https://community.bistudio.com/wiki/hostMission) (revision 369139).</sub>
