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