<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/GetRealMonth?action=history&amp;feed=atom</id>
	<title>GetRealMonth - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/GetRealMonth?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRealMonth&amp;action=history"/>
	<updated>2026-04-11T11:11:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRealMonth&amp;diff=71123&amp;oldid=prev</id>
		<title>N3xT: Created page with &quot;__NOTOC__ {{Useful Function}} This function returns the current month name.  '''Author:''' N3xT  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string getRealMonth() &lt;/syntaxhighligh...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRealMonth&amp;diff=71123&amp;oldid=prev"/>
		<updated>2021-05-23T14:28:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Useful Function}} This function returns the current month name.  &amp;#039;&amp;#039;&amp;#039;Author:&amp;#039;&amp;#039;&amp;#039; N3xT  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string getRealMonth() &amp;lt;/syntaxhighligh...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Useful Function}}&lt;br /&gt;
This function returns the current month name.&lt;br /&gt;
&lt;br /&gt;
'''Author:''' N3xT&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getRealMonth()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
This function returns a string containing the real month name&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local monthsTable = {&lt;br /&gt;
	[1] = &amp;quot;January&amp;quot;,&lt;br /&gt;
	[2] = &amp;quot;February&amp;quot;,&lt;br /&gt;
	[3] = &amp;quot;March&amp;quot;,&lt;br /&gt;
	[4] = &amp;quot;April&amp;quot;,&lt;br /&gt;
	[5] = &amp;quot;May&amp;quot;,&lt;br /&gt;
	[6] = &amp;quot;June&amp;quot;,&lt;br /&gt;
	[7] = &amp;quot;July&amp;quot;,&lt;br /&gt;
	[8] = &amp;quot;August&amp;quot;,&lt;br /&gt;
	[9] = &amp;quot;September&amp;quot;,&lt;br /&gt;
	[10] = &amp;quot;October&amp;quot;,&lt;br /&gt;
	[11] = &amp;quot;November&amp;quot;,&lt;br /&gt;
	[12] = &amp;quot;December&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function getRealMonth()&lt;br /&gt;
	local time = getRealTime()&lt;br /&gt;
	local month = time.month + 1&lt;br /&gt;
	return monthsTable[month]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example output the real month.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;realMonth&amp;quot;,&lt;br /&gt;
    function()&lt;br /&gt;
        local realMonth = getRealMonth()&lt;br /&gt;
        outputChatBox(realMonth, 255, 0, 0)&lt;br /&gt;
    end	&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>N3xT</name></author>
	</entry>
</feed>