mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-15 23:07:59 +08:00
RID Spoofing Improvements (#666)
* Fix stability issues with handler hook * Better RID spoofing
This commit is contained in:
@ -45,7 +45,7 @@ namespace big
|
||||
static void system_self_globals();
|
||||
static void system_update_pointers();
|
||||
static void system_desync_kick_protection();
|
||||
static void system_force_session_host();
|
||||
static void system_spoofing();
|
||||
static void system_mission_creator();
|
||||
static void system_auto_tp();
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
namespace big
|
||||
{
|
||||
static bool bLastForceHost = false;
|
||||
void looped::system_force_session_host()
|
||||
void looped::system_spoofing()
|
||||
{
|
||||
if (bLastForceHost != g->session.force_session_host && gta_util::get_network()->m_game_session_state == 0)
|
||||
{
|
||||
@ -29,5 +29,15 @@ namespace big
|
||||
|
||||
bLastForceHost = g->session.force_session_host;
|
||||
}
|
||||
|
||||
if (g->spoofing.rockstar_id != g->spoofing.applied_spoof_rockstar_id && gta_util::get_network()->m_game_session_state == 0)
|
||||
{
|
||||
g->spoofing.applied_spoof_rockstar_id = g->spoofing.spoof_rockstar_id;
|
||||
}
|
||||
|
||||
if (g->spoofing.spoof_rockstar_id != g->spoofing.should_spoof_rockstar_id && gta_util::get_network()->m_game_session_state == 0)
|
||||
{
|
||||
g->spoofing.should_spoof_rockstar_id = g->spoofing.spoof_rockstar_id;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user