Get mission data
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
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.
exports["missions_creator"]:getMissionTemplate(templateId)
templateId
integer
The mission template ID
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