feat(Handling): Deny access when outside of a vehicle
This commit is contained in:
parent
ca389bb4cd
commit
011f40e839
@ -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.");
|
||||
|
||||
|
Reference in New Issue
Block a user