Difference between revisions of "Talk:GetRealMonthM"

From Multi Theft Auto: Wiki
(Created page with "Simply it can be like this (much faster): --Walid (talk) <syntaxhighlight lang="lua"> local monthsTable = {"January","February","March","Ap...")
(No difference)

Revision as of 14:35, 9 November 2016

Simply it can be like this (much faster): --Walid (talk)

local monthsTable = {"January","February","March","April","May","June","July","August","September","October","November","December"}

function getRealMonthName()
    local time = getRealTime()
    local month = time.month + 1
    return monthsTable[month] 
end

On more thing try to change the function name to getRealMonthName (much better)