mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 20:03:09 +08:00
Fix Thread State for Script Functions and cellphone_flashhand (#3619)
This commit is contained in:
@@ -161,7 +161,7 @@ namespace lua::scr_function
|
||||
|
||||
stack[ctx.m_stack_pointer++] = 0;
|
||||
ctx.m_instruction_pointer = instruction_pointer;
|
||||
ctx.m_state = rage::eThreadState::idle;
|
||||
ctx.m_state = rage::eThreadState::running;
|
||||
|
||||
big::g_pointers->m_gta.m_script_vm(stack, big::g_pointers->m_gta.m_script_globals, program, &ctx);
|
||||
|
||||
@@ -313,7 +313,7 @@ namespace lua::scr_function
|
||||
|
||||
stack[ctx.m_stack_pointer++] = 0;
|
||||
ctx.m_instruction_pointer = instruction_pointer;
|
||||
ctx.m_state = rage::eThreadState::idle;
|
||||
ctx.m_state = rage::eThreadState::running;
|
||||
|
||||
big::g_pointers->m_gta.m_script_vm(stack, big::g_pointers->m_gta.m_script_globals, program, &ctx);
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace big
|
||||
|
||||
stack[ctx.m_stack_pointer++] = 0;
|
||||
ctx.m_instruction_pointer = ip;
|
||||
ctx.m_state = rage::eThreadState::idle;
|
||||
ctx.m_state = rage::eThreadState::running;
|
||||
|
||||
g_pointers->m_gta.m_script_vm(stack, g_pointers->m_gta.m_script_globals, program, &ctx);
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace big
|
||||
{
|
||||
if (script && script->m_script_hash == "cellphone_flashhand"_J)
|
||||
{
|
||||
is_using_cellphone = script->m_context.m_state == rage::eThreadState::running;
|
||||
is_using_cellphone = script->m_context.m_state == rage::eThreadState::idle;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user