mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00

* RGB vehicle feature had broken UI * Globals updated to 1.59 * Removed super run (ReClass outdated)
31 lines
899 B
C++
31 lines
899 B
C++
#pragma once
|
|
#include "core/data/session_types.hpp"
|
|
#include "script_global.hpp"
|
|
#include "script.hpp"
|
|
#include "natives.hpp"
|
|
|
|
namespace big::session
|
|
{
|
|
void join_type(SessionType session)
|
|
{
|
|
if (session.id == eSessionType::LEAVE_ONLINE)
|
|
*script_global(1574589).at(2).as<int*>() = -1;
|
|
else
|
|
*script_global(1575012).as<int*>() = (int)session.id;
|
|
|
|
*script_global(1574589).as<int*>() = 1;
|
|
script::get_current()->yield(200ms);
|
|
*script_global(1574589).as<int*>() = 0;
|
|
}
|
|
|
|
static constexpr char const* weathers[] = { "EXTRASUNNY", "CLEAR", "CLOUDS", "SMOG", "FOGGY", "OVERCAST", "RAIN", "THUNDER", "CLEARING", "NEUTRAL", "SNOW", "BLIZZARD", "SNOWLIGHT", "XMAS", "HALLOWEEN" };
|
|
|
|
void local_weather()
|
|
{
|
|
MISC::CLEAR_OVERRIDE_WEATHER();
|
|
|
|
MISC::SET_OVERRIDE_WEATHER(weathers[g->session.local_weather]);
|
|
|
|
*script_global(262145).at(4723).as<bool*>() = g->session.local_weather == 13;
|
|
}
|
|
} |