diff --git a/drp_core/sync/server.lua b/drp_core/sync/server.lua index 2a2b94d..31bce45 100644 --- a/drp_core/sync/server.lua +++ b/drp_core/sync/server.lua @@ -69,7 +69,7 @@ function StartTimeChanging() if minutes >= 60 then hours = hours + 1 minutes = 0 - if hours > 24 then + if hours >= 24 then hours = 0 end end @@ -95,4 +95,4 @@ function RemoteSetTime(mins, hrs) mins = mins TriggerClientEvent("DRP_TimeSync:SetTime", -1, hours, minutes) return {hasSet = true, msg = "You have set the time!"} -end \ No newline at end of file +end