feat(hotkeys): implement hotkeys and more

This commit is contained in:
maybegreat48 committed 2025-03-16 17:40:29 -04:00
1 parent 9530fd24c0
commit 03a13f100d
28 files changed
+772 -39

No files matched your search

+18
View File
@@ -5,6 +5,8 @@
#include "types/script/GtaThread.hpp"
#include "types/script/CGameScriptHandler.hpp"
#include "types/script/CGameScriptId.hpp"
#include "types/script/globals/GlobalPlayerBD.hpp"
#include "game/backend/Self.hpp"
namespace YimMenu::Scripts
{
@@ -59,4 +61,20 @@ namespace YimMenu::Scripts
thread->m_ScriptHandler->GetId()->m_Hash = *hash_4;
}
}
bool SafeToModifyFreemodeBroadcastGlobals()
{
if (!*Pointers.IsSessionStarted)
return false;
if (!FindScriptThread("freemode"_J))
return false;
if (auto gpbd = GlobalPlayerBD::Get())
{
return gpbd->Entries[Self::GetPlayer().GetId()].FreemodeState == eFreemodeState::RUNNING;
}
return false;
}
}