feat(Pointers): Added get player name function

This commit is contained in:
Yimura 2020-12-27 15:42:35 +01:00
parent 86a2b2ba16
commit 65716f2049
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78
3 changed files with 7 additions and 0 deletions

View File

@ -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);
}

View File

@ -78,6 +78,11 @@ namespace big
m_sync_local_time = ptr.as<decltype(m_sync_local_time)>();
});
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<decltype(m_get_player_name)>();
});
main_batch.run(memory::module(nullptr));
m_hwnd = FindWindowW(L"grcWindow", nullptr);

View File

@ -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{};
};