GetResourceLoadTime

From Multi Theft Auto: Wiki
Revision as of 09:40, 13 November 2011 by Ccw (talk | contribs)
Jump to navigation Jump to search

Gets the date and time at which a resource was last loaded in the server.

Syntax

int getResourceLoadTime ( resource res )

Required Arguments

  • res: the resource you want to know the load time of.

Returns

If successful, returns the unix time when the resource was loaded, otherwise false.

Example

This code outputs the date and time at which the scoreboard resource was last loaded.

local res = getResourceFromName ( "scoreboard" )
if res then
    outputConsole ( "scoreboard was last loaded on: " .. getResourceLoadTime(res) )
end

See Also