Jump to content

Get time


jafar

Recommended Posts

Posted
  
    local realTime = getRealTime(  ) 
    local date = {(realTime.year)+1900,(realTime.month)+1,realTime.monthday} 
  

I added 1900 to the year, because getRealTime () will return 114

I added 1 to the month, simply, month day stays the same.

Date[1] is the year

Date[2] is the month

Date[3] is the day

~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names.

~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.

 

Posted

Tell the MTA support we want this LUA function :>

os.time() 

____________________________________

. لا وَالله ، لا أُعطِيكُم بِيَدي إعطَاءَ الذَّليل ، وَلا أفِرُّ فِرارَ العَبيد

____________________________________

n-560x95_D9D9D9_FF9900_000000_000000.png
Posted
I want the time of the vps server no of the player or my computer.

"This function gets the server or client (if used client sided it returns time as set on client's computer) real time and returns it in a table"

Posted

getRealTime() on the server-side should work.

Please do not PM me with scripting related question nor support, use the forums instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...