@@ -406,7 +406,7 @@ public unsafe interface IClientLibrary
406406 public delegate* unmanaged[Cdecl]<nint, byte, void> LocalPed_SetVisible { get; }
407407 public delegate* unmanaged[Cdecl]<nint, ushort> LocalPlayer_GetCurrentAmmo { get; }
408408 public delegate* unmanaged[Cdecl]<nint, uint> LocalPlayer_GetCurrentWeaponHash { get; }
409- public delegate* unmanaged[Cdecl]<nint, ushort > LocalPlayer_GetID { get; }
409+ public delegate* unmanaged[Cdecl]<nint, uint > LocalPlayer_GetID { get; }
410410 public delegate* unmanaged[Cdecl]<nint, float> LocalPlayer_GetMaxStamina { get; }
411411 public delegate* unmanaged[Cdecl]<nint, nint> LocalPlayer_GetPlayer { get; }
412412 public delegate* unmanaged[Cdecl]<nint, float> LocalPlayer_GetStamina { get; }
@@ -1213,7 +1213,7 @@ public unsafe class ClientLibrary : IClientLibrary
12131213 public delegate* unmanaged[Cdecl]<nint, byte, void> LocalPed_SetVisible { get; }
12141214 public delegate* unmanaged[Cdecl]<nint, ushort> LocalPlayer_GetCurrentAmmo { get; }
12151215 public delegate* unmanaged[Cdecl]<nint, uint> LocalPlayer_GetCurrentWeaponHash { get; }
1216- public delegate* unmanaged[Cdecl]<nint, ushort > LocalPlayer_GetID { get; }
1216+ public delegate* unmanaged[Cdecl]<nint, uint > LocalPlayer_GetID { get; }
12171217 public delegate* unmanaged[Cdecl]<nint, float> LocalPlayer_GetMaxStamina { get; }
12181218 public delegate* unmanaged[Cdecl]<nint, nint> LocalPlayer_GetPlayer { get; }
12191219 public delegate* unmanaged[Cdecl]<nint, float> LocalPlayer_GetStamina { get; }
@@ -2411,8 +2411,8 @@ public unsafe class ClientLibrary : IClientLibrary
24112411 private static ushort LocalPlayer_GetCurrentAmmoFallback(nint _localPlayer) => throw new Exceptions.OutdatedSdkException("LocalPlayer_GetCurrentAmmo", "LocalPlayer_GetCurrentAmmo SDK method is outdated. Please update your module nuget");
24122412 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint LocalPlayer_GetCurrentWeaponHashDelegate(nint _localPlayer);
24132413 private static uint LocalPlayer_GetCurrentWeaponHashFallback(nint _localPlayer) => throw new Exceptions.OutdatedSdkException("LocalPlayer_GetCurrentWeaponHash", "LocalPlayer_GetCurrentWeaponHash SDK method is outdated. Please update your module nuget");
2414- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort LocalPlayer_GetIDDelegate(nint _localPlayer);
2415- private static ushort LocalPlayer_GetIDFallback(nint _localPlayer) => throw new Exceptions.OutdatedSdkException("LocalPlayer_GetID", "LocalPlayer_GetID SDK method is outdated. Please update your module nuget");
2414+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint LocalPlayer_GetIDDelegate(nint _localPlayer);
2415+ private static uint LocalPlayer_GetIDFallback(nint _localPlayer) => throw new Exceptions.OutdatedSdkException("LocalPlayer_GetID", "LocalPlayer_GetID SDK method is outdated. Please update your module nuget");
24162416 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate float LocalPlayer_GetMaxStaminaDelegate(nint _localPlayer);
24172417 private static float LocalPlayer_GetMaxStaminaFallback(nint _localPlayer) => throw new Exceptions.OutdatedSdkException("LocalPlayer_GetMaxStamina", "LocalPlayer_GetMaxStamina SDK method is outdated. Please update your module nuget");
24182418 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate nint LocalPlayer_GetPlayerDelegate(nint _player);
@@ -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 != 2627005611384682385UL ) Outdated = true;
3235+ else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 18419608128736389916UL ) 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);
@@ -3629,7 +3629,7 @@ public ClientLibrary(Dictionary<ulong, IntPtr> funcTable)
36293629 LocalPed_SetVisible = (delegate* unmanaged[Cdecl]<nint, byte, void>) GetUnmanagedPtr<LocalPed_SetVisibleDelegate>(funcTable, 7437063190905143438UL, LocalPed_SetVisibleFallback);
36303630 LocalPlayer_GetCurrentAmmo = (delegate* unmanaged[Cdecl]<nint, ushort>) GetUnmanagedPtr<LocalPlayer_GetCurrentAmmoDelegate>(funcTable, 18043294013722431113UL, LocalPlayer_GetCurrentAmmoFallback);
36313631 LocalPlayer_GetCurrentWeaponHash = (delegate* unmanaged[Cdecl]<nint, uint>) GetUnmanagedPtr<LocalPlayer_GetCurrentWeaponHashDelegate>(funcTable, 10510537453292567897UL, LocalPlayer_GetCurrentWeaponHashFallback);
3632- LocalPlayer_GetID = (delegate* unmanaged[Cdecl]<nint, ushort >) GetUnmanagedPtr<LocalPlayer_GetIDDelegate>(funcTable, 11619807947618676643UL , LocalPlayer_GetIDFallback);
3632+ LocalPlayer_GetID = (delegate* unmanaged[Cdecl]<nint, uint >) GetUnmanagedPtr<LocalPlayer_GetIDDelegate>(funcTable, 15045886114080681573UL , LocalPlayer_GetIDFallback);
36333633 LocalPlayer_GetMaxStamina = (delegate* unmanaged[Cdecl]<nint, float>) GetUnmanagedPtr<LocalPlayer_GetMaxStaminaDelegate>(funcTable, 5236676524679058301UL, LocalPlayer_GetMaxStaminaFallback);
36343634 LocalPlayer_GetPlayer = (delegate* unmanaged[Cdecl]<nint, nint>) GetUnmanagedPtr<LocalPlayer_GetPlayerDelegate>(funcTable, 12486927465188645710UL, LocalPlayer_GetPlayerFallback);
36353635 LocalPlayer_GetStamina = (delegate* unmanaged[Cdecl]<nint, float>) GetUnmanagedPtr<LocalPlayer_GetStaminaDelegate>(funcTable, 13452859435150190491UL, LocalPlayer_GetStaminaFallback);
0 commit comments