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 archetype = GetInteriorPortalEntityArchetype(interiorId, portalIndex, i)
print("portal " .. portalIndex .." entity " .. i .. " archetype is: " .. archetype)
end
end