local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
local roomHash = GetRoomKeyFromEntity(playerPed)
local roomId = GetInteriorRoomIndexByHash(interiorId, roomHash)
if roomId ~= -1 then
local roomName = GetInteriorRoomName(interiorId, roomId)
print("current room name is: " .. roomName)
end