---
name: "ctrlSetURLOverlayMode"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "2.10"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlSetURLOverlayMode
revid: 376033
updated: 2025-07-22T09:12:10Z
---

# ctrlSetURLOverlayMode

*Command · GUI Control · Arma 3 v2.10*

## Description

Sets how to handle opening of URL, default browser or Steam overlay. Possible values:
- 0 - default browser
- 1 - Steam overlay if enabled, otherwise default browser
- 2 - Steam overlay, shows error message box if disabled (the box has a button to continue with default browser)

> [!NOTE]
> Toggling Steam overlay in Steam options will require game restart for the changes to take effect.

## Syntax

```sqf
control ctrlSetURLOverlayMode mode
```

**Parameters:**

- `control`: [Control](../topics/Control.md) - control that contain url opening action
- `mode`: [Number](../topics/Number.md) - overlay mode, see description

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

## Examples

### Example 1

```sqf
_control ctrlSetURLOverlayMode 1;
```

## See also

[isSteamOverlayEnabled](../commands/isSteamOverlayEnabled.md) · [ctrlURLOverlayMode](../commands/ctrlURLOverlayMode.md) · [ctrlURL](../commands/ctrlURL.md) · [menuSetURL](../commands/menuSetURL.md)

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