GetMinuteDuration: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
===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== | ||
{{World functions}} | {{World functions}} |
Revision as of 09:32, 12 July 2017
Script Example Missing Function GetMinuteDuration needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
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
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel