setMinuteDuration | Multi Theft Auto: Wiki Skip to content

setMinuteDuration

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.


Sets the real-world duration of an ingame minute. The GTA default is 1000.

Syntax

bool setMinuteDuration ( int milliseconds )
Required Arguments
  • milliseconds: the new duration of an ingame minute, accepted values 0 - 2147483647.

Returns

  • bool: value

Returns true if successful, false otherwise.

Code Examples

shared
function resourceStart()
local realtime = getRealTime()
setTime(realtime.hour, realtime.minute)
setMinuteDuration(60000)
end
addEventHandler("onResourceStart", resourceRoot, resourceStart)

See Also

World Functions