---
name: "setInfoPanel"
type: command
status: ok
groups: ["Custom Panels"]
arma3_since: "1.72"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setInfoPanel
revid: 364317
updated: 2024-05-06T09:38:47Z
---

# setInfoPanel

*Command · Custom Panels · Arma 3 v1.72*

## Description

Opens given component or first component of given component type on specified info panel.

## Syntax

```sqf
setInfoPanel [infoPanelId, componentClassOrType]
```

**Parameters:**

- `infoPanelId`: [String](../topics/String.md) - info panel classname, or "left" or "right"
- `componentClassOrType`: [String](../topics/String.md)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if panel was successfully opened, [false](../commands/false.md) otherwise (e.g. opening GPS on player without GPS item or setting panel to vehicle that doesn't have such capability configured)

## Examples

### Example 1

```sqf
// opens slingload assistant on right panel
private _result = setInfoPanel ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplayComponent"];
if (!_result) then { hint "could not open the slingload assistant, sorry" };
```

## See also

Arma 3: Custom Info · [infoPanel](../commands/infoPanel.md) · [infoPanels](../commands/infoPanels.md) · [infoPanelComponents](../commands/infoPanelComponents.md) · [enableInfoPanelComponent](../commands/enableInfoPanelComponent.md) · [infoPanelComponentEnabled](../commands/infoPanelComponentEnabled.md)

<sub>Source: [BI Community Wiki — setInfoPanel](https://community.bistudio.com/wiki/setInfoPanel) (revision 364317).</sub>
