# GuiInterface.compassSetIconHost

Sets a [Character](../Game-Script-Environment/Userdata/Character.md) as host for a world gui

**Kind:** Function

**Environments:** Game

## Game

### Overload 1

``` { .lua .api-signature }
guiInterface:compassSetIconHost( host, joint? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#compassseticonhost-character-string-optional)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `host` | [Character](../Game-Script-Environment/Userdata/Character.md) | The host of the icon |
| `joint` *(optional)* | string | The joint/bone name (Optional) |

### Overload 2

``` { .lua .api-signature }
guiInterface:compassSetIconHost( iconName, host, joint? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#compassseticonhost-string-shape-string-optional)

**Availability:** Client only

Sets a [Shape](../Game-Script-Environment/Userdata/Shape.md) as host for a compass icon

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `compassHud` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The compass hud GUI. |
| `iconName` | string | Name of a compass icon. |
| `host` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The host of the icon |
| `joint` *(optional)* | string | The host joint/bone name (Optional) |
