feat(Pointers): Added get player name function
This commit is contained in:
parent
86a2b2ba16
commit
65716f2049
@ -9,5 +9,6 @@ namespace big::functions
|
|||||||
using get_native_handler_t = rage::scrNativeHandler(*)(rage::scrNativeRegistrationTable*, rage::scrNativeHash);
|
using get_native_handler_t = rage::scrNativeHandler(*)(rage::scrNativeRegistrationTable*, rage::scrNativeHash);
|
||||||
using fix_vectors_t = void(*)(rage::scrNativeCallContext*);
|
using fix_vectors_t = void(*)(rage::scrNativeCallContext*);
|
||||||
|
|
||||||
|
using get_player_name = char*(Player player);
|
||||||
using sync_local_time_t = void(int h, int m);
|
using sync_local_time_t = void(int h, int m);
|
||||||
}
|
}
|
||||||
|
@ -78,6 +78,11 @@ namespace big
|
|||||||
m_sync_local_time = ptr.as<decltype(m_sync_local_time)>();
|
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));
|
main_batch.run(memory::module(nullptr));
|
||||||
|
|
||||||
m_hwnd = FindWindowW(L"grcWindow", nullptr);
|
m_hwnd = FindWindowW(L"grcWindow", nullptr);
|
||||||
|
@ -35,6 +35,7 @@ namespace big
|
|||||||
|
|
||||||
PVOID m_model_spawn_bypass;
|
PVOID m_model_spawn_bypass;
|
||||||
|
|
||||||
|
functions::get_player_name* m_get_player_name{};
|
||||||
functions::sync_local_time_t* m_sync_local_time{};
|
functions::sync_local_time_t* m_sync_local_time{};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user