local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
local roomHash = GetRoomKeyFromEntity(playerPed)
local roomId = GetInteriorRoomIndexByHash(interiorId, roomHash)
if roomId ~= -1 then
local roomTimecycle = GetInteriorRoomTimecycle(interiorId, roomId)
print("current room timecycle hash is: " .. roomTimecycle)
end