CutscenesClientNot in this build

getCutscenePlayTime

GET_CUTSCENE_PLAY_TIME0x710286BC5EF4D6E1

The GTA V native GET_CUTSCENE_PLAY_TIME of the CUTSCENE namespace, as LS:MP client scripts call it: the global function getCutscenePlayTime, in JavaScript and in Lua.

SignatureJavaScript
getCutscenePlayTime(): number
SignatureLua
getCutscenePlayTime(): integer
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = getCutscenePlayTime();
Lua
local result = getCutscenePlayTime()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Cutscenes CUTSCENE
In the game
int GET_CUTSCENE_PLAY_TIME()
Hash
0x710286BC5EF4D6E1
Introduced
Game build 3258 legacy numbering

Open in the interactive natives reference