From 5b7f47874e432b25a8f5167faf7fd2ba4ee8e4ef Mon Sep 17 00:00:00 2001 From: doxoh Date: Thu, 8 Aug 2024 13:03:53 +0200 Subject: [PATCH] update latest sdk changes --- c-api/core.cpp | 4 ++-- c-api/core.h | 2 +- c-api/func_table.cpp | 4 ++-- cpp-sdk | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/c-api/core.cpp b/c-api/core.cpp index 50b9030..71de297 100644 --- a/c-api/core.cpp +++ b/c-api/core.cpp @@ -818,13 +818,13 @@ void Core_GetEntitiesInRange(alt::ICore* core, vector3_t position, int32_t range entities = entityArr; } -void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size) { +void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, uint8_t order, void**& entities, uint8_t types[], uint64_t size) { alt::Position pos; pos.x = position.x; pos.y = position.y; pos.z = position.z; - auto entitiesArray = core->GetClosestEntities(pos, range, dimension, limit, allowedTypes); + auto entitiesArray = core->GetClosestEntities(pos, range, dimension, limit, allowedTypes, static_cast(order)); if (entitiesArray.size() < size) { size = entitiesArray.size(); } diff --git a/c-api/core.h b/c-api/core.h index f2bc101..60f63b2 100644 --- a/c-api/core.h +++ b/c-api/core.h @@ -138,7 +138,7 @@ EXPORT_SERVER uint64_t Core_GetEntitiesInRangeCount(alt::ICore* core, vector3_t EXPORT_SERVER uint64_t Core_GetClosestEntitiesCount(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes); EXPORT_SERVER void Core_GetEntitiesInDimension(alt::ICore* core, int32_t dimension, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size); EXPORT_SERVER void Core_GetEntitiesInRange(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size); -EXPORT_SERVER void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, void**& entities, uint8_t types[], uint64_t size); +EXPORT_SERVER void Core_GetClosestEntities(alt::ICore* core, vector3_t position, int32_t range, int32_t dimension, int32_t limit, uint64_t allowedTypes, uint8_t order, void**& entities, uint8_t types[], uint64_t size); #ifdef ALT_CLIENT_API EXPORT_CLIENT uint8_t Core_Client_FileExists(alt::ICore* core, alt::IResource* resource, const char* path); diff --git a/c-api/func_table.cpp b/c-api/func_table.cpp index dd221f1..4d77544 100644 --- a/c-api/func_table.cpp +++ b/c-api/func_table.cpp @@ -1,6 +1,6 @@ #include "func_table.h" -inline uint64_t capiHash = 8028889173226987673UL; +inline uint64_t capiHash = 11629663074568386340UL; inline uint64_t capiHashes[] = { 0, #ifdef ALT_CLIENT_API @@ -1367,7 +1367,7 @@ inline uint64_t capiHashes[] = { 16312284234900575747UL, 14452794280175707515UL, 10333270135403224879UL, - 12057843286905322939UL, + 3102729611893259067UL, 419502286495548608UL, 12193205314801108926UL, 13972691773502904173UL, diff --git a/cpp-sdk b/cpp-sdk index cb2ebe2..b1ced94 160000 --- a/cpp-sdk +++ b/cpp-sdk @@ -1 +1 @@ -Subproject commit cb2ebe22c451d51f812c41a257710834c746981b +Subproject commit b1ced94027a7b3c0c2167b12e45da80b49c8527b