local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
if interiorId ~= 0 then
local portalCount = GetInteriorPortalCount(interiorId)
-- rip portals
for portalIndex = 0, portalCount - 1 do
for cornerIndex = 0, 3 do -- 4 corners
SetInteriorPortalCornerPosition(interiorId, portalIndex, cornerIndex, 0.0, 0.0, 0.0)
end
end
RefreshInterior(interiorId)
end