#clock compat
1 messages · Page 1 of 1 (latest)
why and in what way?
for ease of usage
and it can be done by checking the environment
for an example, you can fingerprint gmod by its libraries (i.e. timer and timer.Simple)
or luvit, by timer and timer.setInterval
or love2d, by any of its libraries
and i also highly doubt that you should let your gmod servers run more than a few days straight without restarts
Interesting project, although I think adding event listeners on specific dates and times, like a cron job would make more sense as a format than callbacks like these
agreed
pretty useless if it doesn't persist
or some parts are
this is an abstract example, so yes you shouldnt "let your gmod servers run more than a few days straight without restarts"
local clock = Clock() -- Garrysmod compat by default
function clock:OnWeek(curWeek, dateData)
IGMWeeklyRewards:Reset()
end