Skip to content

Commit 85c0485

Browse files
authored
[GM] Fix Text, AttachedPlayer and AttachedVehicle not being set for PlayerTextLabel
1 parent e0e1cd2 commit 85c0485

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/SampSharp.GameMode/World/PlayerTextLabel.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public PlayerTextLabel(BasePlayer owner, string text, Color color, Vector3 posit
196196
_position = position;
197197
_drawDistance = drawDistance;
198198
_testLOS = testLOS;
199+
_text = text;
199200

200201
Id = PlayerTextLabelInternal.Instance.CreatePlayer3DTextLabel(owner.Id, text, color, position.X, position.Y, position.Z,
201202
drawDistance,
@@ -241,6 +242,8 @@ public PlayerTextLabel(BasePlayer owner, string text, Color color, Vector3 posit
241242
_position = position;
242243
_drawDistance = drawDistance;
243244
_testLOS = testLOS;
245+
_text = text;
246+
_attachedPlayer = attachedPlayer;
244247

245248
Id = PlayerTextLabelInternal.Instance.CreatePlayer3DTextLabel(owner.Id, text, color, position.X, position.Y, position.Z,
246249
drawDistance,
@@ -287,6 +290,8 @@ public PlayerTextLabel(BasePlayer owner, string text, Color color, Vector3 posit
287290
_position = position;
288291
_drawDistance = drawDistance;
289292
_testLOS = testLOS;
293+
_text = text;
294+
_attachedVehicle = attachedVehicle;
290295

291296
Id = PlayerTextLabelInternal.Instance.CreatePlayer3DTextLabel(owner.Id, text, color, position.X, position.Y, position.Z,
292297
drawDistance,
@@ -310,4 +315,4 @@ public PlayerTextLabel(BasePlayer owner, string text, Color color, Vector3 posit
310315

311316
#endregion
312317
}
313-
}
318+
}

0 commit comments

Comments
 (0)