---
name: "openGPS"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "2.04"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/openGPS
revid: 310316
updated: 2022-05-05T16:28:36Z
---

# openGPS

*Command · Interaction · Arma 3 v2.04*

## Description

Opens or closes minimap if player has `"ItemGPS"` linked in inventory and `"MinimapDisplayComponent"` is not disabled with [enableInfoPanelComponent](../commands/enableInfoPanelComponent.md). Returns [true](../commands/true.md) on success. If more than one minimap is open (see [infoPanels](../commands/infoPanels.md), [infoPanel](../commands/infoPanel.md)) each call to the command will close only 1 minimap. Visibility of minimap can be checked with [visibleGPS](../commands/visibleGPS.md) command.

## Syntax

```sqf
openGPS open
```

**Parameters:**

- `open`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to open, [false](../commands/false.md) to close

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) on success

## Examples

### Example 1

```sqf
player linkItem "ItemGPS";
private _success = openGPS true;
```

### Example 2

To close all opened minimaps:

```sqf
while { openGPS false } do { };
// or
while { visibleGPS } do { openGPS false };
```

## See also

[showGPS](../commands/showGPS.md) · [shownGPS](../commands/shownGPS.md) · [visibleGPS](../commands/visibleGPS.md)

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