Skip to content

Commit b579f88

Browse files
committed
update priority
1 parent 3ab9686 commit b579f88

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

api/AltV.Net.Async/Elements/Entities/AsyncBlip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public bool ShortRange
383383
}
384384
}
385385

386-
public ushort Priority
386+
public uint Priority
387387
{
388388
get
389389
{

api/AltV.Net.CApi/Libraries/ClientLibrary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3232,7 +3232,7 @@ private IntPtr GetUnmanagedPtr<T>(IDictionary<ulong, IntPtr> funcTable, ulong ha
32323232
public ClientLibrary(Dictionary<ulong, IntPtr> funcTable)
32333233
{
32343234
if (!funcTable.TryGetValue(0, out var capiHash)) Outdated = true;
3235-
else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 16026255022016353390UL) Outdated = true;
3235+
else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 2627005611384682385UL) Outdated = true;
32363236
Audio_AddOutput_Entity = (delegate* unmanaged[Cdecl]<nint, nint, void>) GetUnmanagedPtr<Audio_AddOutput_EntityDelegate>(funcTable, 9879036518735269522UL, Audio_AddOutput_EntityFallback);
32373237
Audio_AddOutput_ScriptId = (delegate* unmanaged[Cdecl]<nint, uint, void>) GetUnmanagedPtr<Audio_AddOutput_ScriptIdDelegate>(funcTable, 14116998947805478300UL, Audio_AddOutput_ScriptIdFallback);
32383238
Audio_GetBaseObject = (delegate* unmanaged[Cdecl]<nint, nint>) GetUnmanagedPtr<Audio_GetBaseObjectDelegate>(funcTable, 6330360502401226894UL, Audio_GetBaseObjectFallback);

api/AltV.Net.CApi/Libraries/ServerLibrary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ private IntPtr GetUnmanagedPtr<T>(IDictionary<ulong, IntPtr> funcTable, ulong ha
16121612
public ServerLibrary(Dictionary<ulong, IntPtr> funcTable)
16131613
{
16141614
if (!funcTable.TryGetValue(0, out var capiHash)) Outdated = true;
1615-
else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 16026255022016353390UL) Outdated = true;
1615+
else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 2627005611384682385UL) Outdated = true;
16161616
BaseObject_DeleteSyncedMetaData = (delegate* unmanaged[Cdecl]<nint, nint, void>) GetUnmanagedPtr<BaseObject_DeleteSyncedMetaDataDelegate>(funcTable, 8228424877092269355UL, BaseObject_DeleteSyncedMetaDataFallback);
16171617
BaseObject_SetSyncedMetaData = (delegate* unmanaged[Cdecl]<nint, nint, nint, void>) GetUnmanagedPtr<BaseObject_SetSyncedMetaDataDelegate>(funcTable, 8002999088966424231UL, BaseObject_SetSyncedMetaDataFallback);
16181618
Blip_AttachedTo = (delegate* unmanaged[Cdecl]<nint, BaseObjectType*, nint>) GetUnmanagedPtr<Blip_AttachedToDelegate>(funcTable, 15602966080933483258UL, Blip_AttachedToFallback);

api/AltV.Net.CApi/Libraries/SharedLibrary.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public unsafe interface ISharedLibrary
4242
public delegate* unmanaged[Cdecl]<nint, int*, nint> Blip_GetName { get; }
4343
public delegate* unmanaged[Cdecl]<nint, ushort> Blip_GetNumber { get; }
4444
public delegate* unmanaged[Cdecl]<nint, byte> Blip_GetOutlineIndicatorVisible { get; }
45-
public delegate* unmanaged[Cdecl]<nint, ushort> Blip_GetPriority { get; }
45+
public delegate* unmanaged[Cdecl]<nint, uint> Blip_GetPriority { get; }
4646
public delegate* unmanaged[Cdecl]<nint, byte> Blip_GetPulse { get; }
4747
public delegate* unmanaged[Cdecl]<nint, float> Blip_GetRotation { get; }
4848
public delegate* unmanaged[Cdecl]<nint, byte> Blip_GetRoute { get; }
@@ -383,7 +383,7 @@ public unsafe class SharedLibrary : ISharedLibrary
383383
public delegate* unmanaged[Cdecl]<nint, int*, nint> Blip_GetName { get; }
384384
public delegate* unmanaged[Cdecl]<nint, ushort> Blip_GetNumber { get; }
385385
public delegate* unmanaged[Cdecl]<nint, byte> Blip_GetOutlineIndicatorVisible { get; }
386-
public delegate* unmanaged[Cdecl]<nint, ushort> Blip_GetPriority { get; }
386+
public delegate* unmanaged[Cdecl]<nint, uint> Blip_GetPriority { get; }
387387
public delegate* unmanaged[Cdecl]<nint, byte> Blip_GetPulse { get; }
388388
public delegate* unmanaged[Cdecl]<nint, float> Blip_GetRotation { get; }
389389
public delegate* unmanaged[Cdecl]<nint, byte> Blip_GetRoute { get; }
@@ -751,8 +751,8 @@ public unsafe class SharedLibrary : ISharedLibrary
751751
private static ushort Blip_GetNumberFallback(nint _blip) => throw new Exceptions.OutdatedSdkException("Blip_GetNumber", "Blip_GetNumber SDK method is outdated. Please update your module nuget");
752752
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate byte Blip_GetOutlineIndicatorVisibleDelegate(nint _blip);
753753
private static byte Blip_GetOutlineIndicatorVisibleFallback(nint _blip) => throw new Exceptions.OutdatedSdkException("Blip_GetOutlineIndicatorVisible", "Blip_GetOutlineIndicatorVisible SDK method is outdated. Please update your module nuget");
754-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Blip_GetPriorityDelegate(nint _blip);
755-
private static ushort Blip_GetPriorityFallback(nint _blip) => throw new Exceptions.OutdatedSdkException("Blip_GetPriority", "Blip_GetPriority SDK method is outdated. Please update your module nuget");
754+
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint Blip_GetPriorityDelegate(nint _blip);
755+
private static uint Blip_GetPriorityFallback(nint _blip) => throw new Exceptions.OutdatedSdkException("Blip_GetPriority", "Blip_GetPriority SDK method is outdated. Please update your module nuget");
756756
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate byte Blip_GetPulseDelegate(nint _blip);
757757
private static byte Blip_GetPulseFallback(nint _blip) => throw new Exceptions.OutdatedSdkException("Blip_GetPulse", "Blip_GetPulse SDK method is outdated. Please update your module nuget");
758758
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate float Blip_GetRotationDelegate(nint _blip);
@@ -1368,7 +1368,7 @@ private IntPtr GetUnmanagedPtr<T>(IDictionary<ulong, IntPtr> funcTable, ulong ha
13681368
public SharedLibrary(Dictionary<ulong, IntPtr> funcTable)
13691369
{
13701370
if (!funcTable.TryGetValue(0, out var capiHash)) Outdated = true;
1371-
else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 16026255022016353390UL) Outdated = true;
1371+
else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 2627005611384682385UL) Outdated = true;
13721372
Audio_GetID = (delegate* unmanaged[Cdecl]<nint, uint>) GetUnmanagedPtr<Audio_GetIDDelegate>(funcTable, 4464042055475980737UL, Audio_GetIDFallback);
13731373
BaseObject_DeleteMetaData = (delegate* unmanaged[Cdecl]<nint, nint, void>) GetUnmanagedPtr<BaseObject_DeleteMetaDataDelegate>(funcTable, 8032676411671743849UL, BaseObject_DeleteMetaDataFallback);
13741374
BaseObject_DestructCache = (delegate* unmanaged[Cdecl]<nint, void>) GetUnmanagedPtr<BaseObject_DestructCacheDelegate>(funcTable, 6691163275156255752UL, BaseObject_DestructCacheFallback);
@@ -1401,7 +1401,7 @@ public SharedLibrary(Dictionary<ulong, IntPtr> funcTable)
14011401
Blip_GetName = (delegate* unmanaged[Cdecl]<nint, int*, nint>) GetUnmanagedPtr<Blip_GetNameDelegate>(funcTable, 4819731547457026911UL, Blip_GetNameFallback);
14021402
Blip_GetNumber = (delegate* unmanaged[Cdecl]<nint, ushort>) GetUnmanagedPtr<Blip_GetNumberDelegate>(funcTable, 15343935413119710131UL, Blip_GetNumberFallback);
14031403
Blip_GetOutlineIndicatorVisible = (delegate* unmanaged[Cdecl]<nint, byte>) GetUnmanagedPtr<Blip_GetOutlineIndicatorVisibleDelegate>(funcTable, 575049905357744794UL, Blip_GetOutlineIndicatorVisibleFallback);
1404-
Blip_GetPriority = (delegate* unmanaged[Cdecl]<nint, ushort>) GetUnmanagedPtr<Blip_GetPriorityDelegate>(funcTable, 4864043781529557736UL, Blip_GetPriorityFallback);
1404+
Blip_GetPriority = (delegate* unmanaged[Cdecl]<nint, uint>) GetUnmanagedPtr<Blip_GetPriorityDelegate>(funcTable, 9806067137758740430UL, Blip_GetPriorityFallback);
14051405
Blip_GetPulse = (delegate* unmanaged[Cdecl]<nint, byte>) GetUnmanagedPtr<Blip_GetPulseDelegate>(funcTable, 17223773161333574288UL, Blip_GetPulseFallback);
14061406
Blip_GetRotation = (delegate* unmanaged[Cdecl]<nint, float>) GetUnmanagedPtr<Blip_GetRotationDelegate>(funcTable, 10691298001359635004UL, Blip_GetRotationFallback);
14071407
Blip_GetRoute = (delegate* unmanaged[Cdecl]<nint, byte>) GetUnmanagedPtr<Blip_GetRouteDelegate>(funcTable, 15186182545001328952UL, Blip_GetRouteFallback);

api/AltV.Net.Client/Elements/Entities/Blip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public bool ShortRange
390390
}
391391
}
392392

393-
public ushort Priority
393+
public uint Priority
394394
{
395395
get
396396
{

api/AltV.Net.Mock/MockBlip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public MockBlip(ICore core, IntPtr nativePointer, uint id) : base(core, nativePo
3333
public bool Flashes { get; set; }
3434
public bool FlashesAlternate { get; set; }
3535
public bool ShortRange { get; set; }
36-
public ushort Priority { get; set; }
36+
public uint Priority { get; set; }
3737
public float Rotation { get; set; }
3838
public string GxtName { get; set; }
3939
public string Name { get; set; }

api/AltV.Net.Shared/Elements/Entities/ISharedBlip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public interface ISharedBlip : ISharedWorldObject
105105
/// <summary>
106106
/// Gets or sets the blips priority
107107
/// </summary>
108-
ushort Priority { get; set; }
108+
uint Priority { get; set; }
109109

110110
/// <summary>
111111
/// Gets or sets the blips rotation

api/AltV.Net/Elements/Entities/Blip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public bool ShortRange
425425
}
426426
}
427427

428-
public ushort Priority
428+
public uint Priority
429429
{
430430
get
431431
{

runtime

0 commit comments

Comments
 (0)