local se = require "samp.events"
function se.onDisplayGameText(style, time, text)
local sec = string.match(text, "Jailed (%d+) Sec")
if sec ~= nil then
local offset = 86400 - os.date("%H", 0) * 3600
text = os.date("%H:%M:%S", tonumber(sec) + offset)
return { style, 2000, text }
end
end