feat(recovery): Allow Saving Vehicles During Missions (#77)

* feat(recovery): Allow Saving Vehicles During Missions

* Fix

* Fix 2
This commit is contained in:
Arthur
2025-04-02 02:35:58 +03:00
committed by GitHub
parent 1bf8a5eb94
commit a42889a321
4 changed files with 81 additions and 24 deletions
+13
View File
@@ -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++)