mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-04 00:23:27 +08:00
fix(session): sctv spectator not being enabled (#1887)
This commit is contained in:
parent
0e0b4d46a4
commit
fb33819d98
@ -29,6 +29,7 @@ namespace big::scr_globals
|
||||
|
||||
static inline const script_global in_multiplayer(78689); // g_bInMultiplayer
|
||||
static inline const script_global transition_state(1574996);
|
||||
static inline const script_global sctv_spectator(2695969); // pausemenu_multiplayer function 0xE49C42EC
|
||||
|
||||
static inline const script_global vehicle_global(1586488);
|
||||
static inline const script_global mechanic_global(2794162);
|
||||
|
@ -42,7 +42,7 @@ namespace big::session
|
||||
while (!SCRIPT::HAS_SCRIPT_WITH_NAME_HASH_LOADED(RAGE_JOAAT("pausemenu_multiplayer")))
|
||||
script::get_current()->yield();
|
||||
|
||||
*script_global(2695915).as<int*>() = (session == eSessionType::SC_TV ? 1 : 0); // If SCTV then enable spectator mode
|
||||
*scr_globals::sctv_spectator.as<int*>() = (session == eSessionType::SC_TV ? 1 : 0); // If SCTV then enable spectator mode
|
||||
|
||||
if (session == eSessionType::LEAVE_ONLINE)
|
||||
*script_global(1574589).at(2).as<int*>() = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user