diff --git a/api/AltV.Net.CApi/Libraries/ClientLibrary.cs b/api/AltV.Net.CApi/Libraries/ClientLibrary.cs index 7c0e58ec4..94c786699 100644 --- a/api/AltV.Net.CApi/Libraries/ClientLibrary.cs +++ b/api/AltV.Net.CApi/Libraries/ClientLibrary.cs @@ -463,7 +463,7 @@ public unsafe interface IClientLibrary public delegate* unmanaged[Cdecl] LocalObject_AttachToEntity_ScriptId { get; } public delegate* unmanaged[Cdecl] LocalObject_Detach { get; } public delegate* unmanaged[Cdecl] LocalObject_GetComponentTintIndex { get; } - public delegate* unmanaged[Cdecl] LocalObject_GetID { get; } + public delegate* unmanaged[Cdecl] LocalObject_GetID { get; } public delegate* unmanaged[Cdecl] LocalObject_GetObject { get; } public delegate* unmanaged[Cdecl] LocalObject_GetStreamingDistance { get; } public delegate* unmanaged[Cdecl] LocalObject_GetTintIndex { get; } @@ -1340,7 +1340,7 @@ public unsafe class ClientLibrary : IClientLibrary public delegate* unmanaged[Cdecl] LocalObject_AttachToEntity_ScriptId { get; } public delegate* unmanaged[Cdecl] LocalObject_Detach { get; } public delegate* unmanaged[Cdecl] LocalObject_GetComponentTintIndex { get; } - public delegate* unmanaged[Cdecl] LocalObject_GetID { get; } + public delegate* unmanaged[Cdecl] LocalObject_GetID { get; } public delegate* unmanaged[Cdecl] LocalObject_GetObject { get; } public delegate* unmanaged[Cdecl] LocalObject_GetStreamingDistance { get; } public delegate* unmanaged[Cdecl] LocalObject_GetTintIndex { get; } @@ -2665,8 +2665,8 @@ public unsafe class ClientLibrary : IClientLibrary private static void LocalObject_DetachFallback(nint _localObject, byte _dynamic) => throw new Exceptions.OutdatedSdkException("LocalObject_Detach", "LocalObject_Detach SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate int LocalObject_GetComponentTintIndexDelegate(nint _localObject, int _componentType); private static int LocalObject_GetComponentTintIndexFallback(nint _localObject, int _componentType) => throw new Exceptions.OutdatedSdkException("LocalObject_GetComponentTintIndex", "LocalObject_GetComponentTintIndex SDK method is outdated. Please update your module nuget"); - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort LocalObject_GetIDDelegate(nint _localObject); - private static ushort LocalObject_GetIDFallback(nint _localObject) => throw new Exceptions.OutdatedSdkException("LocalObject_GetID", "LocalObject_GetID SDK method is outdated. Please update your module nuget"); + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint LocalObject_GetIDDelegate(nint _localObject); + private static uint LocalObject_GetIDFallback(nint _localObject) => throw new Exceptions.OutdatedSdkException("LocalObject_GetID", "LocalObject_GetID SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate nint LocalObject_GetObjectDelegate(nint _localObject); private static nint LocalObject_GetObjectFallback(nint _localObject) => throw new Exceptions.OutdatedSdkException("LocalObject_GetObject", "LocalObject_GetObject SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint LocalObject_GetStreamingDistanceDelegate(nint _localObject); @@ -3512,7 +3512,7 @@ private IntPtr GetUnmanagedPtr(IDictionary funcTable, ulong ha public ClientLibrary(Dictionary funcTable) { if (!funcTable.TryGetValue(0, out var capiHash)) Outdated = true; - else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 3167287157903801399UL) Outdated = true; + else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 4677548953854785821UL) Outdated = true; Audio_AddOutput = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 9914412815391408844UL, Audio_AddOutputFallback); Audio_GetBaseObject = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 6330360502401226894UL, Audio_GetBaseObjectFallback); Audio_GetCurrentTime = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 2944324482134975819UL, Audio_GetCurrentTimeFallback); @@ -3966,7 +3966,7 @@ public ClientLibrary(Dictionary funcTable) LocalObject_AttachToEntity_ScriptId = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 8482470825689546294UL, LocalObject_AttachToEntity_ScriptIdFallback); LocalObject_Detach = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 6719251755255314299UL, LocalObject_DetachFallback); LocalObject_GetComponentTintIndex = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 15889022995396061331UL, LocalObject_GetComponentTintIndexFallback); - LocalObject_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 11677534497960574507UL, LocalObject_GetIDFallback); + LocalObject_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 15103894139399401453UL, LocalObject_GetIDFallback); LocalObject_GetObject = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 872653086987800810UL, LocalObject_GetObjectFallback); LocalObject_GetStreamingDistance = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 12256606847122365951UL, LocalObject_GetStreamingDistanceFallback); LocalObject_GetTintIndex = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 9339331434227951252UL, LocalObject_GetTintIndexFallback); diff --git a/api/AltV.Net.CApi/Libraries/ServerLibrary.cs b/api/AltV.Net.CApi/Libraries/ServerLibrary.cs index 4cf1ce91b..8962e612c 100644 --- a/api/AltV.Net.CApi/Libraries/ServerLibrary.cs +++ b/api/AltV.Net.CApi/Libraries/ServerLibrary.cs @@ -1884,7 +1884,7 @@ private IntPtr GetUnmanagedPtr(IDictionary funcTable, ulong ha public ServerLibrary(Dictionary funcTable) { if (!funcTable.TryGetValue(0, out var capiHash)) Outdated = true; - else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 3167287157903801399UL) Outdated = true; + else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 4677548953854785821UL) Outdated = true; BaseObject_DeleteSyncedMetaData = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 8228424877092269355UL, BaseObject_DeleteSyncedMetaDataFallback); BaseObject_SetMultipleSyncedMetaData = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 1390762125822890831UL, BaseObject_SetMultipleSyncedMetaDataFallback); BaseObject_SetSyncedMetaData = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 8002999088966424231UL, BaseObject_SetSyncedMetaDataFallback); diff --git a/api/AltV.Net.CApi/Libraries/SharedLibrary.cs b/api/AltV.Net.CApi/Libraries/SharedLibrary.cs index 47baea36c..1fa312190 100644 --- a/api/AltV.Net.CApi/Libraries/SharedLibrary.cs +++ b/api/AltV.Net.CApi/Libraries/SharedLibrary.cs @@ -212,7 +212,7 @@ public unsafe interface ISharedLibrary public delegate* unmanaged[Cdecl] Core_SetMetaData { get; } public delegate* unmanaged[Cdecl] Core_ToggleEvent { get; } public delegate* unmanaged[Cdecl] Core_TriggerLocalEvent { get; } - public delegate* unmanaged[Cdecl] Entity_GetID { get; } + public delegate* unmanaged[Cdecl] Entity_GetID { get; } public delegate* unmanaged[Cdecl] Entity_GetModel { get; } public delegate* unmanaged[Cdecl] Entity_GetNetOwner { get; } public delegate* unmanaged[Cdecl] Entity_GetNetOwnerID { get; } @@ -306,14 +306,14 @@ public unsafe interface ISharedLibrary public delegate* unmanaged[Cdecl] MValueConst_RemoveRef { get; } public delegate* unmanaged[Cdecl] Object_GetAlpha { get; } public delegate* unmanaged[Cdecl] Object_GetEntity { get; } - public delegate* unmanaged[Cdecl] Object_GetID { get; } + public delegate* unmanaged[Cdecl] Object_GetID { get; } public delegate* unmanaged[Cdecl] Object_GetLodDistance { get; } public delegate* unmanaged[Cdecl] Object_GetTextureVariation { get; } public delegate* unmanaged[Cdecl] Ped_GetArmour { get; } public delegate* unmanaged[Cdecl] Ped_GetCurrentWeapon { get; } public delegate* unmanaged[Cdecl] Ped_GetEntity { get; } public delegate* unmanaged[Cdecl] Ped_GetHealth { get; } - public delegate* unmanaged[Cdecl] Ped_GetID { get; } + public delegate* unmanaged[Cdecl] Ped_GetID { get; } public delegate* unmanaged[Cdecl] Ped_GetMaxHealth { get; } public delegate* unmanaged[Cdecl] Player_GetAimPos { get; } public delegate* unmanaged[Cdecl] Player_GetArmor { get; } @@ -327,7 +327,7 @@ public unsafe interface ISharedLibrary public delegate* unmanaged[Cdecl] Player_GetForwardSpeed { get; } public delegate* unmanaged[Cdecl] Player_GetHeadRotation { get; } public delegate* unmanaged[Cdecl] Player_GetHealth { get; } - public delegate* unmanaged[Cdecl] Player_GetID { get; } + public delegate* unmanaged[Cdecl] Player_GetID { get; } public delegate* unmanaged[Cdecl] Player_GetMaxArmor { get; } public delegate* unmanaged[Cdecl] Player_GetMaxHealth { get; } public delegate* unmanaged[Cdecl] Player_GetMoveSpeed { get; } @@ -613,7 +613,7 @@ public unsafe class SharedLibrary : ISharedLibrary public delegate* unmanaged[Cdecl] Core_SetMetaData { get; } public delegate* unmanaged[Cdecl] Core_ToggleEvent { get; } public delegate* unmanaged[Cdecl] Core_TriggerLocalEvent { get; } - public delegate* unmanaged[Cdecl] Entity_GetID { get; } + public delegate* unmanaged[Cdecl] Entity_GetID { get; } public delegate* unmanaged[Cdecl] Entity_GetModel { get; } public delegate* unmanaged[Cdecl] Entity_GetNetOwner { get; } public delegate* unmanaged[Cdecl] Entity_GetNetOwnerID { get; } @@ -707,14 +707,14 @@ public unsafe class SharedLibrary : ISharedLibrary public delegate* unmanaged[Cdecl] MValueConst_RemoveRef { get; } public delegate* unmanaged[Cdecl] Object_GetAlpha { get; } public delegate* unmanaged[Cdecl] Object_GetEntity { get; } - public delegate* unmanaged[Cdecl] Object_GetID { get; } + public delegate* unmanaged[Cdecl] Object_GetID { get; } public delegate* unmanaged[Cdecl] Object_GetLodDistance { get; } public delegate* unmanaged[Cdecl] Object_GetTextureVariation { get; } public delegate* unmanaged[Cdecl] Ped_GetArmour { get; } public delegate* unmanaged[Cdecl] Ped_GetCurrentWeapon { get; } public delegate* unmanaged[Cdecl] Ped_GetEntity { get; } public delegate* unmanaged[Cdecl] Ped_GetHealth { get; } - public delegate* unmanaged[Cdecl] Ped_GetID { get; } + public delegate* unmanaged[Cdecl] Ped_GetID { get; } public delegate* unmanaged[Cdecl] Ped_GetMaxHealth { get; } public delegate* unmanaged[Cdecl] Player_GetAimPos { get; } public delegate* unmanaged[Cdecl] Player_GetArmor { get; } @@ -728,7 +728,7 @@ public unsafe class SharedLibrary : ISharedLibrary public delegate* unmanaged[Cdecl] Player_GetForwardSpeed { get; } public delegate* unmanaged[Cdecl] Player_GetHeadRotation { get; } public delegate* unmanaged[Cdecl] Player_GetHealth { get; } - public delegate* unmanaged[Cdecl] Player_GetID { get; } + public delegate* unmanaged[Cdecl] Player_GetID { get; } public delegate* unmanaged[Cdecl] Player_GetMaxArmor { get; } public delegate* unmanaged[Cdecl] Player_GetMaxHealth { get; } public delegate* unmanaged[Cdecl] Player_GetMoveSpeed { get; } @@ -1211,8 +1211,8 @@ public unsafe class SharedLibrary : ISharedLibrary private static void Core_ToggleEventFallback(nint _core, byte _event, byte _state) => throw new Exceptions.OutdatedSdkException("Core_ToggleEvent", "Core_ToggleEvent SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate void Core_TriggerLocalEventDelegate(nint _core, nint _event, nint[] args, int _size); private static void Core_TriggerLocalEventFallback(nint _core, nint _event, nint[] args, int _size) => throw new Exceptions.OutdatedSdkException("Core_TriggerLocalEvent", "Core_TriggerLocalEvent SDK method is outdated. Please update your module nuget"); - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Entity_GetIDDelegate(nint _entity); - private static ushort Entity_GetIDFallback(nint _entity) => throw new Exceptions.OutdatedSdkException("Entity_GetID", "Entity_GetID SDK method is outdated. Please update your module nuget"); + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint Entity_GetIDDelegate(nint _entity); + private static uint Entity_GetIDFallback(nint _entity) => throw new Exceptions.OutdatedSdkException("Entity_GetID", "Entity_GetID SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint Entity_GetModelDelegate(nint _entity); private static uint Entity_GetModelFallback(nint _entity) => throw new Exceptions.OutdatedSdkException("Entity_GetModel", "Entity_GetModel SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate nint Entity_GetNetOwnerDelegate(nint _entity); @@ -1399,8 +1399,8 @@ public unsafe class SharedLibrary : ISharedLibrary private static byte Object_GetAlphaFallback(nint _object) => throw new Exceptions.OutdatedSdkException("Object_GetAlpha", "Object_GetAlpha SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate nint Object_GetEntityDelegate(nint _object); private static nint Object_GetEntityFallback(nint _object) => throw new Exceptions.OutdatedSdkException("Object_GetEntity", "Object_GetEntity SDK method is outdated. Please update your module nuget"); - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Object_GetIDDelegate(nint _object); - private static ushort Object_GetIDFallback(nint _object) => throw new Exceptions.OutdatedSdkException("Object_GetID", "Object_GetID SDK method is outdated. Please update your module nuget"); + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint Object_GetIDDelegate(nint _object); + private static uint Object_GetIDFallback(nint _object) => throw new Exceptions.OutdatedSdkException("Object_GetID", "Object_GetID SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Object_GetLodDistanceDelegate(nint _object); private static ushort Object_GetLodDistanceFallback(nint _object) => throw new Exceptions.OutdatedSdkException("Object_GetLodDistance", "Object_GetLodDistance SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate byte Object_GetTextureVariationDelegate(nint _object); @@ -1413,8 +1413,8 @@ public unsafe class SharedLibrary : ISharedLibrary private static nint Ped_GetEntityFallback(nint _ped) => throw new Exceptions.OutdatedSdkException("Ped_GetEntity", "Ped_GetEntity SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Ped_GetHealthDelegate(nint _ped); private static ushort Ped_GetHealthFallback(nint _ped) => throw new Exceptions.OutdatedSdkException("Ped_GetHealth", "Ped_GetHealth SDK method is outdated. Please update your module nuget"); - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Ped_GetIDDelegate(nint _ped); - private static ushort Ped_GetIDFallback(nint _ped) => throw new Exceptions.OutdatedSdkException("Ped_GetID", "Ped_GetID SDK method is outdated. Please update your module nuget"); + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint Ped_GetIDDelegate(nint _ped); + private static uint Ped_GetIDFallback(nint _ped) => throw new Exceptions.OutdatedSdkException("Ped_GetID", "Ped_GetID SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Ped_GetMaxHealthDelegate(nint _ped); private static ushort Ped_GetMaxHealthFallback(nint _ped) => throw new Exceptions.OutdatedSdkException("Ped_GetMaxHealth", "Ped_GetMaxHealth SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate void Player_GetAimPosDelegate(nint _player, Vector3* _aimPosition); @@ -1441,8 +1441,8 @@ public unsafe class SharedLibrary : ISharedLibrary private static void Player_GetHeadRotationFallback(nint _player, Rotation* _headRotation) => throw new Exceptions.OutdatedSdkException("Player_GetHeadRotation", "Player_GetHeadRotation SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Player_GetHealthDelegate(nint _player); private static ushort Player_GetHealthFallback(nint _player) => throw new Exceptions.OutdatedSdkException("Player_GetHealth", "Player_GetHealth SDK method is outdated. Please update your module nuget"); - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Player_GetIDDelegate(nint _player); - private static ushort Player_GetIDFallback(nint _player) => throw new Exceptions.OutdatedSdkException("Player_GetID", "Player_GetID SDK method is outdated. Please update your module nuget"); + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate uint Player_GetIDDelegate(nint _player); + private static uint Player_GetIDFallback(nint _player) => throw new Exceptions.OutdatedSdkException("Player_GetID", "Player_GetID SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Player_GetMaxArmorDelegate(nint _player); private static ushort Player_GetMaxArmorFallback(nint _player) => throw new Exceptions.OutdatedSdkException("Player_GetMaxArmor", "Player_GetMaxArmor SDK method is outdated. Please update your module nuget"); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Player_GetMaxHealthDelegate(nint _player); @@ -1608,7 +1608,7 @@ private IntPtr GetUnmanagedPtr(IDictionary funcTable, ulong ha public SharedLibrary(Dictionary funcTable) { if (!funcTable.TryGetValue(0, out var capiHash)) Outdated = true; - else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 3167287157903801399UL) Outdated = true; + else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 4677548953854785821UL) Outdated = true; Audio_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4464042055475980737UL, Audio_GetIDFallback); AudioAttachedOutput_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 17725794901805112189UL, AudioAttachedOutput_GetIDFallback); AudioFilter_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 8824535635529306325UL, AudioFilter_GetIDFallback); @@ -1811,7 +1811,7 @@ public SharedLibrary(Dictionary funcTable) Core_SetMetaData = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4905441971289102819UL, Core_SetMetaDataFallback); Core_ToggleEvent = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 17798706175912111294UL, Core_ToggleEventFallback); Core_TriggerLocalEvent = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 2095655564565809781UL, Core_TriggerLocalEventFallback); - Entity_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 12913447266302910987UL, Entity_GetIDFallback); + Entity_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 10233629489933073997UL, Entity_GetIDFallback); Entity_GetModel = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 6111944054700936115UL, Entity_GetModelFallback); Entity_GetNetOwner = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 7130354370478174789UL, Entity_GetNetOwnerFallback); Entity_GetNetOwnerID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 10262653550309861069UL, Entity_GetNetOwnerIDFallback); @@ -1905,14 +1905,14 @@ public SharedLibrary(Dictionary funcTable) MValueConst_RemoveRef = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 2951895109234703784UL, MValueConst_RemoveRefFallback); Object_GetAlpha = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4782965940294523501UL, Object_GetAlphaFallback); Object_GetEntity = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4934471410579771998UL, Object_GetEntityFallback); - Object_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 12916172794746864343UL, Object_GetIDFallback); + Object_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 6815264172955104609UL, Object_GetIDFallback); Object_GetLodDistance = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 9053583879265260950UL, Object_GetLodDistanceFallback); Object_GetTextureVariation = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4660664364773957039UL, Object_GetTextureVariationFallback); Ped_GetArmour = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4106400780828488738UL, Ped_GetArmourFallback); Ped_GetCurrentWeapon = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 446737373633343515UL, Ped_GetCurrentWeaponFallback); Ped_GetEntity = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 17974792644403470118UL, Ped_GetEntityFallback); Ped_GetHealth = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 7104729899977702888UL, Ped_GetHealthFallback); - Ped_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4733988892192620155UL, Ped_GetIDFallback); + Ped_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 8160348533631447101UL, Ped_GetIDFallback); Ped_GetMaxHealth = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 18375756057324289044UL, Ped_GetMaxHealthFallback); Player_GetAimPos = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 6124580830261182834UL, Player_GetAimPosFallback); Player_GetArmor = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 343339663996265887UL, Player_GetArmorFallback); @@ -1926,7 +1926,7 @@ public SharedLibrary(Dictionary funcTable) Player_GetForwardSpeed = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 12498998920879213674UL, Player_GetForwardSpeedFallback); Player_GetHeadRotation = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 17222204554789096264UL, Player_GetHeadRotationFallback); Player_GetHealth = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 14695407730559477910UL, Player_GetHealthFallback); - Player_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 2649376720891219187UL, Player_GetIDFallback); + Player_GetID = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 18416303018230933813UL, Player_GetIDFallback); Player_GetMaxArmor = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4693803817659874615UL, Player_GetMaxArmorFallback); Player_GetMaxHealth = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 4164549052335308174UL, Player_GetMaxHealthFallback); Player_GetMoveSpeed = (delegate* unmanaged[Cdecl]) GetUnmanagedPtr(funcTable, 10963946276172720740UL, Player_GetMoveSpeedFallback); diff --git a/runtime b/runtime index e205b3f81..fcccba81b 160000 --- a/runtime +++ b/runtime @@ -1 +1 @@ -Subproject commit e205b3f81cc81044dde3a1c50dd0c9e45d695355 +Subproject commit fcccba81b9434d4d6c21d161064b7265553b3139