Gameplay::getGameTimer: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 April 2024

  • curprev 09:5009:50, 29 April 2024Shr0x talk contribs 526 bytes +526 Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets the current game timer in ms (game time starts when the game begins). ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getGameTimer(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const gameTime = mp.game.gameplay.getGameTimer(); mp.console.logInfo(`Game time is ${gameTime}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} C..."