Skip to main content

Gameplay::getFrameCount

Client-side function

JavaScript​

Returns the number of frames

Return value​

  • number

Syntax​

mp.game.gameplay.getFrameCount();

Example​

const frameCount = mp.game.gameplay.getFrameCount();
mp.console.logInfo(`Your FPS is ${frameCount}`);