jafar Posted December 25, 2014 Share Posted December 25, 2014 Hi, I want the MTA time code for get the time from my vps server. How to do it? Link to comment
AJXB Posted December 25, 2014 Share Posted December 25, 2014 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 Link to comment
jafar Posted December 25, 2014 Author Share Posted December 25, 2014 I want the time of the vps server no of the player or my computer. Link to comment
AL~SaYeD Posted December 25, 2014 Share Posted December 25, 2014 Tell the MTA support we want this LUA function :> os.time() Link to comment
pa3ck Posted December 25, 2014 Share Posted December 25, 2014 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" Link to comment
DNL291 Posted December 26, 2014 Share Posted December 26, 2014 getRealTime() on the server-side should work. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now