---
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: 349445
updated: 2023-11-08T16:48:31Z
---

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

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

## Examples

### Example 1

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

## See also

GUI Tutorial · Arma: GUI Configuration

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