GetMinuteDuration: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Tells you how long an ingame minute takes in real-world milliseconds. The default GTA value is 1000. ==Syntax== <syntaxhighlight lang="lua"> int getMinuteDuration ( ) </syntaxhighlight>...)
 
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Server client function}}
Tells you how long an ingame minute takes in real-world milliseconds. The default GTA value is 1000.
Tells you how long an ingame minute takes in real-world milliseconds. The default GTA value is 1000.


Line 13: Line 13:
===Returns===
===Returns===
Returns the number of real-world milliseconds that go in an ingame minute.
Returns the number of real-world milliseconds that go in an ingame minute.
===Example===
This example prints the server's minute duration
<syntaxhighlight lang="lua">
addCommandHandler("duration",function()
outputChatBox("minute duration is :"..getMinuteDuration())
end)
</syntaxhighlight>


==See Also==
==See Also==
{{Client_world_functions}}
{{World functions}}

Latest revision as of 09:32, 12 July 2017

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

Syntax

int getMinuteDuration ( )

Required Arguments

None

Returns

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

Example

This example prints the server's minute duration

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

See Also