mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
@@ -78,8 +78,8 @@ local function getTimeUnit(value, unit)
|
||||
for listValue in string.gmatch(value, '%d+') --[[@as number]] do
|
||||
listValue = tonumber(listValue)
|
||||
|
||||
-- if current minute is less than in the expression 0,10,20,45 * * * *
|
||||
if listValue > currentTime then
|
||||
-- e.g. if current time is less than in the expression 0,10,20,45 * * * *
|
||||
if listValue >= currentTime then
|
||||
return listValue
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user