mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 11:53:14 +08:00
feat(recovery): Allow Saving Vehicles During Missions (#77)
* feat(recovery): Allow Saving Vehicles During Missions * Fix * Fix 2
This commit is contained in:
@@ -28,6 +28,19 @@ namespace YimMenu::Scripts
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
rage::scrThread* FindScriptThreadByID(std::uint32_t id)
|
||||
{
|
||||
for (auto& thread : *Pointers.ScriptThreads)
|
||||
{
|
||||
if (thread && thread->m_Context.m_ThreadId == id)
|
||||
{
|
||||
return thread;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
rage::scrProgram* FindScriptProgram(joaat_t hash)
|
||||
{
|
||||
for (int i = 0; i < 176; i++)
|
||||
|
||||
Reference in New Issue
Block a user