Sync time in reallife?


#1

Anyone know how to sync the time in real life with the server for all ?


#2

try os.date() and os.time ?


#3

uhm…where i put that ?


#4

else where can i have the function like that … ?


#5

try this… in server side script… and see if you can adapt

TriggerEvent('es:addCommand', 'seeos', function(source, args, user) TriggerClientEvent('chatMessage', source, 'SYSTEM', {255, 0, 0}, "Os time == " .. os.time()) end)


#6

i try it now thank’s


#7

Did this work? Been trying to do the same.


#8

time = GetUtcTime()
works well for me