local hour = 0
function main()--создаём основную функцию
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(1000) -- 1000 - 1 sek
hour = hour + 1
if hour == 13 then
hour = 0
end
setTimeOfDay(hour, 0)
end
end