---
title: "IsValid3DTextLabel | open.mp"
description: "Checks if a 3D text label is valid."
canonical: https://omp.itsneufox.com/docs/scripting/functions/IsValid3DTextLabel
language: en
---

# IsValid3DTextLabel

warning

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

## Description

Checks if a 3D text label is valid.

| Name | Description |
| --- | --- |
| Text3D:textid | The ID of the 3D text label to check. |

## Returns

This function returns **true** if the 3D text label is valid, or **false** if it is not.

## Examples

```c
new Text3D:gMyLabel;

public OnGameModeInit()
{
    gMyLabel = Create3DTextLabel("I'm at the coordinates:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, false);

    if (IsValid3DTextLabel(gMyLabel))
    {
        // Do something
    }
    return 1;
}
```

## Related Functions

-   [Create3DTextLabel](https://omp.itsneufox.com/docs/scripting/functions/Create3DTextLabel): Creates a 3D Text Label at a specific location in the world.
-   [IsValidPlayer3DTextLabel](https://omp.itsneufox.com/docs/scripting/functions/IsValidPlayer3DTextLabel): Checks if a player's 3D text label is valid.
