feat(Pointers): Added get_net_game_player function
This commit is contained in:
parent
55ab43563e
commit
e664c3cd2b
@ -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);
|
||||
|
||||
|
@ -186,6 +186,12 @@ namespace big
|
||||
m_scripted_game_event = ptr.as<decltype(m_scripted_game_event)>();
|
||||
});
|
||||
|
||||
// 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<decltype(m_get_net_game_player)>();
|
||||
});
|
||||
|
||||
main_batch.run(memory::module(nullptr));
|
||||
|
||||
m_hwnd = FindWindowW(L"grcWindow", nullptr);
|
||||
|
@ -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{};
|
||||
|
||||
|
Reference in New Issue
Block a user