# GuiInterface.compassSetIconWorldPosition

Sets the world position for a world gui

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:compassSetIconWorldPosition( iconName, worldPosition, world? )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `compassHud` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The compass hud GUI. |
| `iconName` | string | Name of a compass icon. |
| `worldPosition` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The position to set. |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world, defaults to same as the script |
