---
name: "setMarkerText"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setMarkerText
revid: 370039
updated: 2024-10-28T20:28:34Z
---

# setMarkerText

*Command · Markers · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

Locality: effect **global**

## Description

Sets the text label of an existing marker.

> [!NOTE]
> **Multiplayer optimisation:** Global marker commands always broadcast the *entire* marker state over the network.
> As such, the number of network messages exchanged when creating or editing a marker can be reduced by performing all but the last operation using local marker commands, then using a global marker command for the last change (and subsequent global broadcast of all changes applied to the marker).

## Syntax

```sqf
markerName setMarkerText text
```

**Parameters:**

- `markerName`: [String](../topics/String.md)
- `text`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
"Marker1" setMarkerText "You are here.";
```

## See also

[setMarkerBrush](../commands/setMarkerBrush.md) · [setMarkerColor](../commands/setMarkerColor.md) · [setMarkerDir](../commands/setMarkerDir.md) · [setMarkerPos](../commands/setMarkerPos.md) · [setMarkerShape](../commands/setMarkerShape.md) · [setMarkerSize](../commands/setMarkerSize.md) · [setMarkerType](../commands/setMarkerType.md) · [setMarkerAlpha](../commands/setMarkerAlpha.md)

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