# GuiInterface.setRequireLineOfSight

Sets if a world gui requires line of sight to be shown

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
guiInterface:setRequireLineOfSight( required )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `required` | boolean | True if gui requires line of sight to render |
