local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
if interiorId ~= 0 then
local portalIndex = 0
local cornerIndex = 0
local x, y, z = GetInteriorPortalCornerPosition(interiorId, portalIndex, cornerIndex)
print("position of portal " .. portalIndex .. "corner index " .. cornerIndex .. " is: " .. vec(x, y, z))
end