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

# On mission completed

> Triggered server side when a mission succeeds.

Event triggered on mission success.

```lua Event theme={null}
RegisterNetEvent("missions_creator:missionCompleted", function(instanceId, missionId, players)

end)
```

### Parameters

| Name         | Data Type | Description                                                  |
| ------------ | --------- | ------------------------------------------------------------ |
| `instanceId` | integer   | Unique session ID                                            |
| `missionId`  | integer   | Mission ID, the one you see in the admin menu                |
| `players`    | table     | Table containing the players who participated in the mission |

<Note>
  Add this event in any server-side file you want to use it in.
</Note>


## Related topics

- [Server](/missions-creator/server/index.md)
- [Step completed](/robberies-creator/server/step-completed.md)
- [How to start](/missions-creator/how-to-start.md)
- [On mission failed](/missions-creator/server/on-mission-failed.md)
- [On mission start](/missions-creator/server/on-mission-start.md)
