mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
feat(OffRadar): Moved to util/mobile
This commit is contained in:
parent
831ba8ad3a
commit
df92a95aa9
@ -1,16 +1,11 @@
|
|||||||
#include "backend/looped/looped.hpp"
|
#include "backend/looped/looped.hpp"
|
||||||
#include "pointers.hpp"
|
#include "util/mobile.hpp"
|
||||||
#include "natives.hpp"
|
|
||||||
#include "script_global.hpp"
|
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
void looped::self_off_radar()
|
void looped::self_off_radar()
|
||||||
{
|
{
|
||||||
if (g.self.off_radar)
|
if (g.self.off_radar)
|
||||||
{
|
mobile::lester::off_radar(g.self.off_radar);
|
||||||
*script_global(2689156).at(PLAYER::GET_PLAYER_INDEX(), 453).at(209).as<int*>() = 1;
|
|
||||||
*script_global(2703656).at(70).as<int*>() = NETWORK::GET_NETWORK_TIME() + 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -2,13 +2,29 @@
|
|||||||
#include "core/enums.hpp"
|
#include "core/enums.hpp"
|
||||||
#include "script_global.hpp"
|
#include "script_global.hpp"
|
||||||
#include "misc.hpp"
|
#include "misc.hpp"
|
||||||
|
#include "natives.hpp"
|
||||||
|
|
||||||
namespace big::mobile
|
namespace big::mobile
|
||||||
{
|
{
|
||||||
|
inline auto player_global = script_global(2689156);
|
||||||
|
inline auto vehicle_global = script_global(1585844);
|
||||||
|
|
||||||
|
namespace lester
|
||||||
|
{
|
||||||
|
inline void off_radar(bool toggle)
|
||||||
|
{
|
||||||
|
*player_global.at(PLAYER::GET_PLAYER_INDEX(), 453).at(209).as<int*>() = toggle;
|
||||||
|
*script_global(2703656).at(70).as<int*>() = NETWORK::GET_NETWORK_TIME() + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace mechanic
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
namespace mors_mutual
|
namespace mors_mutual
|
||||||
{
|
{
|
||||||
auto vehicle_global = script_global(1585844);
|
|
||||||
|
|
||||||
bool fix_index(int veh_idx); // forward declare func
|
bool fix_index(int veh_idx); // forward declare func
|
||||||
inline int fix_all()
|
inline int fix_all()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user