Attach3DTextLabelToPlayer
From SA-MP Wiki
Attatch a 3D text label to player.
(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
| Text3D:id | The ID of the 3D Text label to attach. |
| playerid | The ID of the player to attach the 3D text label to. |
| OffsetX | The X offset from the player. |
| OffsetY | The Y offset from the player. |
| OffsetZ | The Z offset from the player. |
| Returns | This function doesn't return a specific value |
public OnPlayerConnect(playerid) { new Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- CreatePlayer3DTextLabel: Create A 3D text label for one player.
- DeletePlayer3DTextLabel: Delete a player's 3D text label.
- UpdatePlayer3DTextLabelText: Change the text of a player's 3D text label.
- Create3DTextLabel: Create a 3D text label.
- Delete3DTextLabel: Delete a 3D text label.
- Attach3DTextLabelToVehicle: Attach a 3D text label to a vehicle.
- Update3DTextLabelText: Change the text of a 3D text label.
