---
name: "lnbSetPicture"
type: command
status: ok
groups: ["GUI Control - ListNBox"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lnbSetPicture
revid: 379364
updated: 2026-10-30T23:56:40Z
---

# lnbSetPicture

*Command · GUI Control - ListNBox · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Sets the picture in the item with the given position of the 2D listbox.The picture is searched in the mission, directory, the dtaExt subdirectory of the campaign directory, and the dtaExt directory and the data bank (or directory).

## Syntax

### Syntax 1

```sqf
lnbSetPicture [idc, [row, column], picturePathOrName]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `row`: [Number](../topics/Number.md)
- `column`: [Number](../topics/Number.md)
- `picturePathOrName`: [String](../topics/String.md)

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

### Syntax 2

```sqf
ctrl lnbSetPicture [[row, column], picturePathOrName]
```

**Parameters:**

- `ctrl`: [Control](../topics/Control.md)
- `row`: [Number](../topics/Number.md)
- `column`: [Number](../topics/Number.md)
- `picturePathOrName`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
lnbSetPicture [1, [0, 0], "Picture"];
```

### Example 2

```sqf
_ctrl lnbSetPicture [[0, 0], "\A3\Ui_f\data\GUI\Cfg\Ranks\lieutenant_gs.paa"];
```

## See also

[lnbPicture](../commands/lnbPicture.md) · [lnbSetPictureRight](../commands/lnbSetPictureRight.md) · [lnbPictureRight](../commands/lnbPictureRight.md)

## Community notes

**R3vo** — 2021-04-06

> [!NOTE]
> Adding pictures to lists is very slow. In order to prevent the filling of the list to be slowed down, add the pictures in the **scheduled** environment. One drawback of that method is, that sorting the entries is not easily possible.
>
> ```sqf
> private _path = _ctrlTV tvAdd [[], "Some Entry"];
> [_ctrlTV, _path] spawn {
>     (_this select 0) tvSetPictureRight [[_this select 1], "someImage.paa"];
> };
> ```

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