1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-12 17:13:20 +02:00
parent ee396ec359
commit 3f0b315154
7 changed files with 0 additions and 1145 deletions

View file

@ -1,23 +0,0 @@
function getTimestamp()
local meridiem = 'AM'
year , month , day , hour , minute , second = ''
if GetGameName() == 'fivem' then
year , month , day , hour , minute , second = GetLocalTime()
elseif GetGameName() == 'redm' then
year , month , day , hour , minute , second = GetPosixTime()
end
if hour >= 13 then
hour = hour - 12
meridiem = 'PM'
end
if hour == 12 then
meridiem = 'PM'
end
if minute <= 9 then
minute = '0' .. minute
end
timestamp = hour .. ':' .. minute .. ' ' .. meridiem
return timestamp
end
exports('getTimestamp', getTimestamp)