ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getResourceLastStartTime

Function

getResourceLastStartTime

ServerResourcesIdentical to MTA:SA

Returns when the resource last started (seconds since 1970) or 0. In the current server version it always returns 0.

Syntax

int getResourceLastStartTime(resource theResource)

Arguments

theResourceresource
The resource.

Returns

The start time or 0.

Example

outputServerLog("Start: " .. getResourceLastStartTime(getThisResource()))

See also