GetResourceLastStartTime
From Multi Theft Auto: Wiki
Used to check the last starting time and date of a resource
Syntax
int getResourceLastStartTime ( resource theResource )
Required Arguments
- theResource: The resource of which you'd like to check the last starting time.
Returns
If successful, returns the UNIX timestamp when the resource was last started, or the string "never" if the resource has not been started yet, otherwise false. Use in conjunction with getRealTime in order to retrieve detailed information.
Example
This function outputs to chatbox when the current resource was started.
function whenStarted() local startTime = getResourceLastStartTime ( getThisResource() ) --Get the time and date outputChatBox( "This resource was started on: " .. startTime ) --tell everybody when the current resource was started. end
See Also
- addResourceConfig
- addResourceMap
- call
- callRemote
- copyResource
- createResource
- deleteResource
- fetchRemote
- getResourceACLRequests
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceInfo
- getResourceLastStartTime
- getResourceLoadFailureReason
- getResourceLoadTime
- getResourceMapRootElement
- getResourceName
- getResourceOrganizationalPath
- getResourceRootElement
- getResourceState
- getResources
- getThisResource
- isResourceArchived
- refreshResources
- removeResourceFile
- renameResource
- restartResource
- setResourceInfo
- startResource
- stopResource
- updateResourceACLRequest
- getRemoteRequests
- getRemoteRequestInfo
- abortRemoteRequest