> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Start a mission

> Manually start a mission server side, for example to integrate it with your own code.

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

```lua Export: startMission theme={null}
exports["missions_creator"]:startMission(templateId, playerIdOrArray)
```

#### Parameters

| Name              | Data Type        | Description                                        |
| ----------------- | ---------------- | -------------------------------------------------- |
| `templateId`      | integer          | The mission template ID                            |
| `playerIdOrArray` | integer \| table | Player server ID, or an array of player server IDs |

#### Return value

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


## Related topics

- [Get a mission template](/missions-creator/client/get-mission-template.md)
- [Server](/missions-creator/server/index.md)
- [Installation](/missions-creator/installation.md)
- [On mission start](/missions-creator/server/on-mission-start.md)
