diff --git a/src/byte_patch_manager.cpp b/src/byte_patch_manager.cpp index 6e88dfd3..e4f83db2 100644 --- a/src/byte_patch_manager.cpp +++ b/src/byte_patch_manager.cpp @@ -66,7 +66,7 @@ namespace big memory::byte_patch::make(g_pointers->m_gta.m_script_vm_patch_6.add(6).as(), 0x9090)->apply(); // Patch script network check - memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked + //memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked // Increase Start Get Presence Attributes limit from 32 to 100 memory::byte_patch::make(g_pointers->m_sc.m_num_handles_patch, std::vector{0x64})->apply(); diff --git a/src/script_mgr.cpp b/src/script_mgr.cpp index cb80fd36..de60f92b 100644 --- a/src/script_mgr.cpp +++ b/src/script_mgr.cpp @@ -24,7 +24,11 @@ namespace big void script_mgr::tick() { - gta_util::execute_as_script("main_persistent"_J, std::mem_fn(&script_mgr::tick_internal), this); + auto thread = gta_util::find_script_thread("freemode"_J); + if (!thread) + thread = gta_util::find_script_thread("main_persistent"_J); + if (thread) + gta_util::execute_as_script(thread, std::mem_fn(&script_mgr::tick_internal), this); } void script_mgr::ensure_main_fiber()