---
title: "Set3DTextLabelLOS | open.mp"
description: "Sets the 3D text label line-of-sight."
canonical: https://omp.itsneufox.com/docs/scripting/functions/Set3DTextLabelLOS
language: en
---

# Set3DTextLabelLOS

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## Description

Sets the 3D text label line-of-sight.

| Name | Description |
| --- | --- |
| Text3D:textid | The ID of the 3D text label to set the line-of-sight. |
| bool:enable | (false/true) Test the line-of-sight so this text can't be seen through objects |

## Examples

```c
new Text3D:gMyLabel;

gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, true);

Set3DTextLabelLOS(gMyLabel, false);
// The line-of-sight changed from 'true' to 'false'
```

## Related Functions

-   [Get3DTextLabelLOS](https://omp.itsneufox.com/docs/scripting/functions/Get3DTextLabelLOS): Gets the 3D text label line-of-sight.
-   [SetPlayer3DTextLabelLOS](https://omp.itsneufox.com/docs/scripting/functions/SetPlayer3DTextLabelLOS): Sets the player 3D text label line-of-sight.
