From f35c69181f1ded9131247b92ee7006726494fa84 Mon Sep 17 00:00:00 2001 From: doxoh Date: Sat, 13 Apr 2024 13:13:21 +0200 Subject: [PATCH] fix(client): remove textlabels by GetAllTextLabels() --- api/AltV.Net.Client/Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/AltV.Net.Client/Core.cs b/api/AltV.Net.Client/Core.cs index 7e25e6737..8977c24cb 100644 --- a/api/AltV.Net.Client/Core.cs +++ b/api/AltV.Net.Client/Core.cs @@ -232,7 +232,7 @@ public IReadOnlyCollection GetAllTextLabels() { CheckIfCallIsValid(); ulong size = 0; - var ptr = Library.Shared.Core_GetMarkers(NativePointer, &size); + var ptr = Library.Shared.Core_GetTextLabels(NativePointer, &size); var data = new IntPtr[size]; Marshal.Copy(ptr, data, 0, (int)size); var arr = data.Select(e => PoolManager.TextLabel.GetOrCreate(this, e)).ToArray();