feat(Handling): Deny access when outside of a vehicle

This commit is contained in:
Yimura 2021-08-04 22:17:25 +02:00
parent b33213f075
commit 43862f9462

View File

@ -10,7 +10,7 @@ namespace big
ImGui::SetNextWindowPos({ 50, 50 }, ImGuiCond_FirstUseEver); ImGui::SetNextWindowPos({ 50, 50 }, ImGuiCond_FirstUseEver);
if (g.window.handling && ImGui::Begin("Handling", &g.window.handling)) if (g.window.handling && ImGui::Begin("Handling", &g.window.handling))
{ {
if (g_local_player == nullptr || g_local_player->m_vehicle == nullptr) if (g_local_player == nullptr || g_local_player->m_vehicle == nullptr || g_local_player->m_in_vehicle == 0x10)
{ {
ImGui::Text("Please enter a vehicle."); ImGui::Text("Please enter a vehicle.");