---
name: "BIS_fnc_initDisplay"
type: function
status: ok
groups: ["GUI"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_initDisplay
revid: 379270
updated: 2026-10-30T23:44:11Z
---

# BIS_fnc_initDisplay

*Function · GUI · Arma 3 v1.00*

## Description

This function is a central part of how BI handles UIs. For a full explanation see [this page](../topics/GUI_Tutorial.md#bis-fnc-initdisplay).

## Syntax

```sqf
parameters call BIS_fnc_initDisplay
```

**Parameters:**

- `parameters`: [Array](../topics/Array.md)

  - [] - Init displays during preStart
  - [mode, params, displayClass, scriptPath, register]
    - mode: [String](../topics/String.md) - Mode, can be "onLoad" or "onUnload"
    - params: [Array](../topics/Array.md) - Parameters passed from [onLoad](../topics/User_Interface_Event_Handlers.md#onload) or [onUnload](../topics/User_Interface_Event_Handlers.md#onunload) UI event handler
    - displayClass: [String](../topics/String.md) - [Display](../topics/Display.md) class, usually to format "RscDisplayXXX"
    - scriptPath: [String](../topics/String.md) - Script path from CfgScriptPaths
    - register: [Number](../topics/Number.md) or [Boolean](../topics/Boolean.md) - Save variables associated with the display to the uiNamespace. Usually this is `false` when the function is called from a control.

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

## Examples

### Example 1

```sqf
["onLoad", _this, "RscDisplayAAR", "GUI", true] call (uiNamespace getVariable "BIS_fnc_initDisplay");
```

## See also

[GUI Tutorial](../topics/GUI_Tutorial.md) · [Arma: GUI Configuration](../topics/Arma~3A_GUI_Configuration.md)

<sub>Source: [BI Community Wiki — BIS fnc initDisplay](https://community.bistudio.com/wiki/BIS_fnc_initDisplay) (revision 379270).</sub>
