HEY! I am trying to create durability for my inventory. I am trying to convert Date.now() (JavaScript) to LUA Server side. Any help would be appreciated!
Use Events
Thanks for the reply. I’m not trying to trigger it from JS. I thought if there is a way to convert it using
os.date.
exports('getDate', () => Date.now())
try this
you can also try os.clock()
but it i believe it returns time in seconds
yeah I did try os.clock(). But I am just going to use an export.