diff --git a/BigBaseV2/src/function_types.hpp b/BigBaseV2/src/function_types.hpp index f74b15ad..53a7e958 100644 --- a/BigBaseV2/src/function_types.hpp +++ b/BigBaseV2/src/function_types.hpp @@ -9,5 +9,6 @@ namespace big::functions using get_native_handler_t = rage::scrNativeHandler(*)(rage::scrNativeRegistrationTable*, rage::scrNativeHash); using fix_vectors_t = void(*)(rage::scrNativeCallContext*); + using get_player_name = char*(Player player); using sync_local_time_t = void(int h, int m); } diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index b964a8c0..4e4ebfd5 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -78,6 +78,11 @@ namespace big m_sync_local_time = ptr.as(); }); + main_batch.add("Get Player Name", "40 53 48 83 EC 20 80 3D ? ? ? ? ? 8B D9 74 22", [this](memory::handle ptr) + { + m_get_player_name = ptr.as(); + }); + main_batch.run(memory::module(nullptr)); m_hwnd = FindWindowW(L"grcWindow", nullptr); diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index 080a8d83..dd3a744d 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -35,6 +35,7 @@ namespace big PVOID m_model_spawn_bypass; + functions::get_player_name* m_get_player_name{}; functions::sync_local_time_t* m_sync_local_time{}; };