> For the complete documentation index, see [llms.txt](https://documentation.jaksam-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.jaksam-scripts.com/missions-creator/server/start-mission.md).

# Start mission

Export to manually start a mission server side, in case you want to integrate it with your code

## Export: startMission

```lua
exports["missions_creator"]:startMission(templateId, playerIdOrArray)
```

#### Parameters

| Name              | Data Type | Description             |
| ----------------- | --------- | ----------------------- |
| `templateId`      | integer   | The mission template ID |
| `playerIdOrArray` | integer   | table                   |

#### Return value

| Name         | Data Type | Description                                                                             |
| ------------ | --------- | --------------------------------------------------------------------------------------- |
| `instanceId` | number    | The instance ID of the newly created mission or nil if the mission could not be created |
