---
name: "setUserMFDValue"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "1.70"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setUserMFDValue
revid: 373032
updated: 2025-03-18T16:50:36Z
---

# setUserMFDValue

*Command · Interaction · Arma 3 v1.70*

## Description

When MFD is using user controllers, this command can set values on them. For example, MFD config for Blackfoot has an entry

```cpp
// ...
class Draw
{
    alpha = "user3";
    color[] = {"user0","user1","user2"};
// ...
```

which could control color of the MFD. See Example 2-3-4 on how to set different colors of the Blackfoot MFD

> [!NOTE]
> **Since Arma 3 v2.20:** Vehicles can be configured to support more than 50 user sources with "mfdMaxUserValues = 50" entry in CfgVehicles config class. As of 2.20 the limit is 256. It is recommended to configure this also for vehicles that use fewer MFD sources, it improves performance to only set as many as are being used.

## Syntax

```sqf
vehicle setUserMFDValue [index, value]
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - an vehicle with MFD
- `index`: [Number](../topics/Number.md) - index of custom MFD user actions
- `value`: [Number](../topics/Number.md) - value which should custom source return in MFD

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

## Examples

### Example 1

```sqf
BIS_Plane setUserMFDValue [0,1]; // user0 in MFD will return 1
```

### Example 2

Set MFD Red:

```sqf
Blackfoot setUserMFDValue [0, 1];    // "user0" - 1
Blackfoot setUserMFDValue [1, 0];    // "user1" - 0
Blackfoot setUserMFDValue [2, 0];    // "user2" - 0
Blackfoot setUserMFDValue [3, 1];    // "user3" - 1
```

### Example 3

Set MFD pale Blue:

```sqf
Blackfoot setUserMFDValue [0, 0];    // "user0" - 0
Blackfoot setUserMFDValue [1, 0];    // "user1" - 0
Blackfoot setUserMFDValue [2, 1];    // "user2" - 1
Blackfoot setUserMFDValue [3, 0.1];    // "user3" - 0.1
```

### Example 4

Hide MFD:

```sqf
Blackfoot setUserMFDValue [3, 0];    // "user3" - 0
```

### Example 5

Arma 3 v1.72 multiple changes at once:

```sqf
myPlane setUserMFDValue [10, 16, 404, 64];    // "user10" - 16
                                            // "user11" - 404
                                            // "user12" - 64
```

## See also

[getUserMFDValue](../commands/getUserMFDValue.md) · [setUserMFDText](../commands/setUserMFDText.md) · [getUserMFDText](../commands/getUserMFDText.md)

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