Skip to main content

Gameplay::getFrameTime

Client-side function

JavaScript​

Gets the time since the last frame

Return value​

  • float

Syntax​

mp.game.gameplay.getFrameTime();

Example​

const frameTime = mp.game.gameplay.getFrameTime();
mp.console.logInfo(`Frame time is ${frameTime}`);