Gameplay::getGameTimer
Client-Side Function
JavaScript Syntax
Gets the current game timer in ms (game time starts when the game begins).
Return value
- number
Syntax
mp.game.gameplay.getGameTimer();
Example
const gameTime = mp.game.gameplay.getGameTimer();
mp.console.logInfo(`Game time is ${gameTime}`);