getMinuteDuration | Multi Theft Auto: Wiki Skip to content

getMinuteDuration

Client-side
Server-side
Shared

Manual Review Required

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


Tells you how long an ingame minute takes in real-world milliseconds. The default GTA value is 1000.

Syntax

int getMinuteDuration ( )

Returns

  • int: value

Returns the number of real-world milliseconds that go in an ingame minute.

Code Examples

shared

This example prints the server's minute duration

addCommandHandler("duration",function()
outputChatBox("minute duration is :"..getMinuteDuration())
end)

See Also

World Functions