---
name: "BIS_fnc_endMissionServer"
type: function
status: deprecated
replaced_by: ["remoteExec", "BIS_fnc_endMission"]
groups: ["Multiplayer"]
arma3_since: "1.00"
locality: {"argument": null, "effect": "global", "server_exec": true}
source: https://community.bistudio.com/wiki/BIS_fnc_endMissionServer
revid: 363361
updated: 2024-03-27T20:01:55Z
---

# BIS_fnc_endMissionServer

*Function · Multiplayer · Arma 3 v1.00*

> [!WARNING]
> This function is deprecated. Use [remoteExec](../commands/remoteExec.md) or [BIS_fnc_endMission](../functions/BIS_fnc_endMission.md) instead.

Locality: effect **global** · **server execution only**

## Description

Ends the mission properly for all players in a multiplayer environment.

> [!NOTE]
> This function is somewhat deprecated for custom endings since Arma 3 v1.50 as [remote-exec](../commands/remoteExec.md)uting [BIS_fnc_endMission](../functions/BIS_fnc_endMission.md) allows for more options:
>
> ```sqf
> ["MyEnding", true, 3] remoteExec ["BIS_fnc_endMission", 0, true];
> ```

## Syntax

```sqf
endType call BIS_fnc_endMissionServer
```

**Parameters:**

- `endType`: [String](../topics/String.md) - class name of ending defined in [CfgDebriefing](../topics/Description.ext.md#cfgdebriefing).

  Can be **custom** or one of dynamically calculated ones:
  - "EveryoneWon" - Show "MISSION COMPLETED" to everyone
  - "EveryoneLost" - Show "MISSION FAILED" to everyone
  - "SideTickets" - Show "YOUR SIDE WON" to side/s with most tickets and "YOUR SIDE LOST" to everyone else
  - "SideScore" - Show "YOUR SIDE WON" to side with largest score
  - "GroupScore" - Show "YOUR GROUP WON" to group with largest score
  - "PlayerScore" - Show "YOU WON" to player with largest score

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
"SideScore" call BIS_fnc_endMissionServer;
```

## See also

[BIS_fnc_endMission](../functions/BIS_fnc_endMission.md) · [failMission](../commands/failMission.md) · [forceEnd](../commands/forceEnd.md) · [endMission](../commands/endMission.md)

<sub>Source: [BI Community Wiki — BIS fnc endMissionServer](https://community.bistudio.com/wiki/BIS_fnc_endMissionServer) (revision 363361).</sub>
