local function getRankTable(pl)
local time = pl:sam_get_play_time()
local roundedTime = math.floor((time / 3600))
local time_data = {}
for _, data_hour in ipairs(table_hours) do
if time >= data_hour[1] then
for k, v in ipairs(data_hour) do
time_data[k] = v
end
else
break
end
end
table.insert(time_data, roundedTime)
return time_data
end