mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-19 07:28:04 +08:00
17 lines
471 B
C++
17 lines
471 B
C++
#include "hooking.hpp"
|
|
#include "native_hooks/native_hooks.hpp"
|
|
|
|
namespace big
|
|
{
|
|
rage::eThreadState hooks::gta_thread_kill(GtaThread* thread)
|
|
{
|
|
rage::eThreadState result = g_hooking->m_gta_thread_kill_hook.get_original<decltype(>a_thread_kill)>()(thread);
|
|
|
|
g_native_hooks->do_cleanup_for_thread(thread);
|
|
|
|
if (thread->m_script_hash == RAGE_JOAAT("freemode"))
|
|
g.protections.freemode_terminated = !(result == rage::eThreadState::running);
|
|
|
|
return result;
|
|
}
|
|
} |