mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-12 10:18:05 +08:00
* Complete player and network UI redesign, meant to show all features instead of stuffing them into tiny boxes * Added option to delete player vehicles * Better clone player (now clones head blend too) * Better host token spoofing, with an option to enter your own * Better host token spoofing detection * Better desync kick prot detections * A script blocker for the entire session (per-player options will be added later) * Added option to spoof data/DLC hashes * Logging framework that allows developers to easily debug false positives * Major protection improvements
25 lines
621 B
C++
25 lines
621 B
C++
#pragma once
|
|
#include "native_hooks.hpp"
|
|
#include "natives.hpp"
|
|
#include "pointers.hpp"
|
|
|
|
namespace big
|
|
{
|
|
namespace network
|
|
{
|
|
inline void NETWORK_SESSION_HOST(rage::scrNativeCallContext* src)
|
|
{
|
|
if (g.session.join_queued)
|
|
{
|
|
g_pointers->m_gta.m_join_session_by_info(*g_pointers->m_gta.m_network, &g.session.info, g.session.join_in_sctv_slots ? 1 : 0, 1 | 2, nullptr, 0);
|
|
g.session.join_queued = false;
|
|
src->set_return_value<BOOL>(TRUE);
|
|
}
|
|
else
|
|
{
|
|
src->set_return_value<BOOL>(NETWORK::NETWORK_SESSION_HOST(src->get_arg<int>(0), src->get_arg<int>(1), src->get_arg<BOOL>(2)));
|
|
}
|
|
}
|
|
}
|
|
}
|