> ## 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.

# Get a mission template

> Retrieve a mission template's data server side, such as its options, label, or description.

Export to get a mission template server side, in case you want to retrieve its data — for example options, label, description, etc.

A good example of usage is a custom menu that displays only a limited number of missions, showing their label and description using this export.

If you want to start a mission manually after selecting it, you can use the [`startMission` export](/missions-creator/server/start-mission) to do so.

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

#### Parameters

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

#### Return value

| Name           | Data Type | Description                                    |
| -------------- | --------- | ---------------------------------------------- |
| `templateData` | table     | The mission template data. See main keys below |

##### Main keys of `templateData`

| Key           | Type    | Description                            |
| ------------- | ------- | -------------------------------------- |
| `id`          | integer | The mission template ID                |
| `label`       | string  | The mission name/label                 |
| `description` | string  | The mission description                |
| `options`     | table   | Table with mission options (see below) |

<Note>
  The `options` table usually contains fields like `startCoordinates`, `minPlayers`, `maxPlayers`, `allowedJobs`, `canBeRepeated`, `requiredMissions`.
</Note>


## Related topics

- [Get a mission template](/missions-creator/client/get-mission-template.md)
- [Server](/missions-creator/server/index.md)
- [Client](/missions-creator/client/index.md)
- [Start a mission](/missions-creator/server/start-mission.md)
- [Missions Creator](/missions-creator/home.md)
