Gameplay::getFrameCount
Client-Side Function
JavaScript Syntax
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}`);