---
name: "BIS_fnc_3DENShowMessage"
type: function
status: ok
groups: ["Eden Editor"]
arma3_since: "1.58"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_3DENShowMessage
revid: 376078
updated: 2025-07-30T11:33:25Z
---

# BIS_fnc_3DENShowMessage

*Function · Eden Editor · Arma 3 v1.58*

## Description

Shows a pop-up message.
In order to skip any optional parameter in between other parameters, send [nil](../commands/nil.md) as parameter.

> [!NOTE]
> The following stringtable entries are useful to add custom [Code](../topics/Code.md) but keep the default button texts:
> - `"STR_DISP_OK"`
> - `"STR_DISP_CLOSE"`
> - `"STR_DISP_CANCEL"`

## Syntax

```sqf
[text, title, buttonOK, buttonCancel, icon, parentDisplay] call BIS_fnc_3DENShowMessage
```

**Parameters:**

- `text`: [String](../topics/String.md) - text to display. Text is [parsed](../commands/parseText.md) and therefore supports [Structured Text](../topics/Structured_Text.md) tags
- `title`: [String](../topics/String.md) - (Optional, default "") title header
- `buttonOK`: [String](../topics/String.md), [Boolean](../topics/Boolean.md) or [Array](../topics/Array.md) - (Optional, default "") can be one of:
  - [String](../topics/String.md) - button's text
  - [Boolean](../topics/Boolean.md) - show button or not
  - [Array](../topics/Array.md) - in format [[String](../topics/String.md) or [Boolean](../topics/Boolean.md), [Code](../topics/Code.md)]:
    - [String](../topics/String.md) or [Boolean](../topics/Boolean.md) - same as above
    - [Code](../topics/Code.md) - code executed when button is pressed
- `buttonCancel`: [String](../topics/String.md), [Boolean](../topics/Boolean.md) or [Array](../topics/Array.md) - (Optional, default "") can be one of:
  - [String](../topics/String.md) - button's text
  - [Boolean](../topics/Boolean.md) - show button or not
  - [Array](../topics/Array.md) - in format [[String](../topics/String.md) or [Boolean](../topics/Boolean.md), [Code](../topics/Code.md)]:
    - [String](../topics/String.md) or [Boolean](../topics/Boolean.md) - same as above
    - [Code](../topics/Code.md) - code executed when button is pressed
- `icon`: [String](../topics/String.md) - (Optional, default "") path to an icon which will be shown on the left side of the message
- `parentDisplay`: [Display](../topics/Display.md) - (Optional, default `findDisplay 313` (Eden Display)) display from which the window is opened

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

## Examples

### Example 1

```sqf
["Message","Title of the Message"] call BIS_fnc_3DENShowMessage;
```

### Example 2

```sqf
[
    "Are you sure you want to delete / modify the selected variables?",
    "Delete / Modify",
    [
        "Yes",
        { BIS_Message_Confirmed = true }
    ],
    [
        "No",
        { BIS_Message_Confirmed = false }
    ],
    "\A3\ui_f\data\map\markers\handdrawn\warning_CA.paa",
    findDisplay 313
] call BIS_fnc_3DENShowMessage;
```

### Example 3

```sqf
// Only change the OK button's code
[
    "Are you sure you want to delete / modify the selected variables?",
    "Delete / Modify",
    [
        nil,
        { BIS_Message_Confirmed = true }
    ],
    nil,
    "\A3\ui_f\data\map\markers\handdrawn\warning_CA.paa",
    findDisplay 313
] call BIS_fnc_3DENShowMessage;
```

## See also

[BIS_fnc_guiMessage](../functions/BIS_fnc_guiMessage.md)

<sub>Source: [BI Community Wiki — BIS fnc 3DENShowMessage](https://community.bistudio.com/wiki/BIS_fnc_3DENShowMessage) (revision 376078).</sub>
