From afaf0e678025c32a6e3407196de1e4cfb3c27eba Mon Sep 17 00:00:00 2001 From: dynamoNg <139460769+lonelybud@users.noreply.github.com> Date: Sat, 31 Aug 2024 12:44:55 +0530 Subject: [PATCH] add check in CVehicleProximityMigrationDataNode --- src/hooks/protections/can_apply_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/protections/can_apply_data.cpp b/src/hooks/protections/can_apply_data.cpp index 0e83e9ea..d37134e0 100644 --- a/src/hooks/protections/can_apply_data.cpp +++ b/src/hooks/protections/can_apply_data.cpp @@ -1499,7 +1499,7 @@ namespace big { const auto migration_node = (CVehicleProximityMigrationDataNode*)(node); - if (!g_local_player->m_vehicle || !g_local_player->m_vehicle->m_net_object + if (g.protections.request_control && !g_local_player->m_vehicle || !g_local_player->m_vehicle->m_net_object || g_local_player->m_vehicle->m_net_object->m_object_id != object->m_object_id || !is_in_vehicle(g_local_player, g_local_player->m_vehicle)) {