# Get mission data

Export to get a mission template client side, in case you want to retrieve the 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.md) to do so.

## Export: getMissionTemplate

```lua
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`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.jaksam-scripts.com/missions-creator/client/get-mission-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
