---
name: "setGroupIconsVisible"
type: command
status: ok
groups: ["High Command"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setGroupIconsVisible
revid: 369184
updated: 2024-09-03T10:34:45Z
---

# setGroupIconsVisible

*Command · High Command · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: effect **local**

## Description

Sets if group icons added with [addGroupIcon](../commands/addGroupIcon.md) are visible on map and in the HUD.

## Syntax

```sqf
setGroupIconsVisible [showOnMap, showOnHUD]
```

**Parameters:**

- `showOnMap`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to show on map. Default is [false](../commands/false.md)
- `showOnHUD`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to show on HUD. Default is [false](../commands/false.md)

**Returns:** [Nothing](../topics/Nothing.md) (prior to Arma 3 v1.94 this command returned [Object](../topics/Object.md) of [null](../commands/objNull.md) value)

## Examples

### Example 1

```sqf
setGroupIconsVisible [true, true];
(group player) addGroupIcon ["b_inf", [0, 0]];
```

## See also

[addGroupIcon](../commands/addGroupIcon.md) · [clearGroupIcons](../commands/clearGroupIcons.md) · [getGroupIcon](../commands/getGroupIcon.md) · [getGroupIconParams](../commands/getGroupIconParams.md) · [groupIconSelectable](../commands/groupIconSelectable.md) · [groupIconsVisible](../commands/groupIconsVisible.md) · [onGroupIconClick](../commands/onGroupIconClick.md) · [removeGroupIcon](../commands/removeGroupIcon.md) · [setGroupIcon](../commands/setGroupIcon.md) · [setGroupIconParams](../commands/setGroupIconParams.md) · [setGroupIconsSelectable](../commands/setGroupIconsSelectable.md)

## Community notes

**Larrow** — 2022-02-06

If enabling for MARTA (Military Symbols) and using teamSwitch this command needs to be run again once switched to the new unit.
Possibly do it in a mission eventHandler of TeamSwitch.

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