mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-11 01:38:13 +08:00
feat(hotkeys): implement hotkeys and more
This commit is contained in:
1 parent
9530fd24c0
commit
03a13f100d
28 files changed
+772
-39
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user