#include "gta/net_array.hpp" #include "hooking.hpp" #include "script_global.hpp" #include "script_local.hpp" #include namespace big { void hooks::write_vehicle_proximity_migration_data_node(rage::netObject* veh, CVehicleProximityMigrationDataNode* node) { CVehicle* vehicle = *(CVehicle**)(((__int64)veh) - 432); g_hooking->get_original()(veh, node); if (vehicle->m_net_object->m_object_id = g.m_tp_veh_net_id) { node->m_has_occupants[0] = true; node->m_occupants[0] = g.m_tp_player_net_id; node->m_override_position = true; node->m_position = g.m_tp_position; } } }