getResourceLastStartTime | Multi Theft Auto: Wiki Skip to content

getResourceLastStartTime

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Used to check the last starting time and date of a resource

Syntax

getResourceLastStartTime ( )

Code Examples

server

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