---
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: 352055
updated: 2024-02-01T23:24:34Z
---

# 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)

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