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

This commit is contained in:
Yimura 2021-08-04 22:17:25 +02:00
parent ca389bb4cd
commit 011f40e839
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -10,7 +10,7 @@ namespace big
ImGui::SetNextWindowPos({ 50, 50 }, ImGuiCond_FirstUseEver);
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.");