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 = GetInteriorPortalEntityPosition(interiorId, portalIndex, i)
print("portal " .. portalIndex .." entity " .. i .. " position is: " .. vec3(x, y, z))
end
end