---
title: "Attach3DTextLabelToPlayer | open.mp"
description: "Przyczepia tekst 3D do gracza."
canonical: https://omp.itsneufox.com/pl/docs/scripting/functions/Attach3DTextLabelToPlayer
language: pl
---

# Attach3DTextLabelToPlayer

## Opis

Przyczepia tekst 3D do gracza.

| Nazwa | Opis |
| --- | --- |
| Text3D:textid | ID tekstu 3D do przyczepienia. Zwracane przez Create3DTextLabel. |
| playerid | ID gracza, do którego tekst 3D ma zostać przyczepiony. |
| OffsetX | Offset X gracza. |
| OffsetY | Offset Y gracza. |
| OffsetZ | Offset Z gracza. |

## Zwracane wartości

1: Funkcja wykonała się prawidłowo.

0: Funkcja nie wykonała się prawidłowo. Oznacza to, że gracz i/lub tekst 3D nie istnieją.

## Przykłady

```c
public OnPlayerConnect(playerid)
{
    new Text3D:textLabel = Create3DTextLabel("Hej, jestem tu nowy!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(textLabel, playerid, 0.0, 0.0, 0.7);
    return 1;
}
```

## Powiązane funkcje

-   [Create3DTextLabel](https://omp.itsneufox.com/pl/docs/scripting/functions/Create3DTextLabel): Tworzy tekst 3D.
-   [Delete3DTextLabel](https://omp.itsneufox.com/pl/docs/scripting/functions/Delete3DTextLabel): Kasuje tekst 3D.
-   [Attach3DTextLabelToVehicle](https://omp.itsneufox.com/pl/docs/scripting/functions/Attach3DTextLabelToVehicle): Przyczepia tekst 3D do pojazdu.
-   [Update3DTextLabelText](https://omp.itsneufox.com/pl/docs/scripting/functions/Update3DTextLabelText): Zmienia treść tekstu 3D.
-   [CreatePlayer3DTextLabel](https://omp.itsneufox.com/pl/docs/scripting/functions/CreatePlayer3DTextLabel): Tworzy tekst 3D dla konkretnego gracza.
-   [DeletePlayer3DTextLabel](https://omp.itsneufox.com/pl/docs/scripting/functions/DeletePlayer3DTextLabel): Kasuje tekst 3D danego gracza.
-   [UpdatePlayer3DTextLabelText](https://omp.itsneufox.com/pl/docs/scripting/functions/UpdatePlayer3DTextLabelText): Zmienia treść tekstu 3D danego gracza.
