From e664c3cd2b6ad3637186ce520c3a3b1c15b82e1b Mon Sep 17 00:00:00 2001 From: Yimura Date: Mon, 26 Jul 2021 13:38:28 +0200 Subject: [PATCH] feat(Pointers): Added get_net_game_player function --- BigBaseV2/src/function_types.hpp | 3 +++ BigBaseV2/src/pointers.cpp | 6 ++++++ BigBaseV2/src/pointers.hpp | 2 ++ 3 files changed, 11 insertions(+) diff --git a/BigBaseV2/src/function_types.hpp b/BigBaseV2/src/function_types.hpp index a528006a..97ae852b 100644 --- a/BigBaseV2/src/function_types.hpp +++ b/BigBaseV2/src/function_types.hpp @@ -1,6 +1,7 @@ #pragma once #include "common.hpp" #include "gta/fwddec.hpp" +#include "gta/player.hpp" #include "gta/natives.hpp" namespace big::functions @@ -11,6 +12,8 @@ namespace big::functions using error_screen = void(char* entryHeader, char* entryLine1, int instructionalKey, char* entryLine2, BOOL p4, Any p5, Any* p6, Any* p7, BOOL background); + using get_net_game_player = CNetGamePlayer*(Player player); + using gta_thread_tick = __int64(GtaThread* a1, unsigned int a2); using gta_thread_kill = __int64(GtaThread* a1); diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index 5084e0c4..45d4ba62 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -185,6 +185,12 @@ namespace big { m_scripted_game_event = ptr.as(); }); + + // GET CNetGamePlayer + main_batch.add("GCNGP", "48 83 EC ? 33 C0 38 05 ? ? ? ? 74 ? 83 F9", [this](memory::handle ptr) + { + m_get_net_game_player = ptr.as(); + }); main_batch.run(memory::module(nullptr)); diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index 6091d364..732c54f1 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -38,6 +38,8 @@ namespace big functions::error_screen* m_error_screen{}; + functions::get_net_game_player* m_get_net_game_player{}; + functions::gta_thread_tick* m_gta_thread_tick{}; functions::gta_thread_kill* m_gta_thread_kill{};