# GuiInterface.setItemIcon

Sets the resource, group and item name on an imagebox widget

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:setItemIcon( imagebox, itemResource, itemGroup, itemName )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#setitemicon)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `imagebox` | string | The name of the imagebox |
| `itemResource` | string | The item resource |
| `itemGroup` | string | The item group |
| `itemName` | string | The item name |
