local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
if interiorId ~= 0 then
local roomIndex = 0
local portalRoomFrom = GetInteriorPortalRoomFrom(interiorId, 0)
print("portal " .. roomIndex .. " room FROM is: " .. portalRoomFrom)
end