Added check for IS_VEHICLE_DOOR_DAMAGED in keep_vehicle_repaired. (#1933)
Fixed Selected Teleport not showing up in hotkeys menu. Added Yim's Vehicle cleanup code from the halted PR.
This commit is contained in:
@ -149,6 +149,8 @@ namespace big
|
||||
vehicle::teleport_into_vehicle(veh);
|
||||
}
|
||||
}
|
||||
// cleanup clones
|
||||
ENTITY::SET_ENTITY_AS_NO_LONGER_NEEDED(&veh);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -151,7 +151,7 @@ namespace big
|
||||
vehicle::get_spawn_location(g.spawn_vehicle.spawn_inside, vehicle.m_hash);
|
||||
const auto spawn_heading = ENTITY::GET_ENTITY_HEADING(self::ped);
|
||||
|
||||
const auto veh = vehicle::spawn(vehicle.m_hash, spawn_location, spawn_heading);
|
||||
auto veh = vehicle::spawn(vehicle.m_hash, spawn_location, spawn_heading);
|
||||
|
||||
if (veh == 0)
|
||||
{
|
||||
@ -173,6 +173,7 @@ namespace big
|
||||
}
|
||||
|
||||
g_model_preview_service->stop_preview();
|
||||
ENTITY::SET_ENTITY_AS_NO_LONGER_NEEDED(&veh);
|
||||
});
|
||||
ImGui::PopID();
|
||||
|
||||
|
Reference in New Issue
Block a user