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 to do so.
Export: getMissionTemplate
exports["missions_creator"]:getMissionTemplate(templateId)
Parameters
templateId
integer
The mission template ID
Return value
templateData
table
The mission template data. See main keys below
Main keys of templateData
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 likestartCoordinates
,minPlayers
,maxPlayers
,allowedJobs
,canBeRepeated
,requiredMissions
Last updated
Was this helpful?