local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
local portalIndex = 0
if interiorId ~= 0 then
local count = GetInteriorPortalEntityCount(interiorId, portalIndex)
for i=0, count-1 do
local x, y, z, w = GetInteriorPortalEntityRotation(interiorId, portalIndex, i)
print("portal " .. portalIndex .." entity " .. i .. " rotation is: " .. vec4(x, y, z, w))
end
end