Gameplay::getFrameTime

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax

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}`);


See also