CutscenesClient

hasCutFileLoaded

HAS_CUT_FILE_LOADED0xA1C996C2A744262E

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

SignatureJavaScript
hasCutFileLoaded(cutsceneName: string): boolean
SignatureLua
hasCutFileLoaded(cutsceneName: string): boolean

Usage

JavaScript
const result = hasCutFileLoaded(cutsceneName);
Lua
local result = hasCutFileLoaded(cutsceneName)

Parameters

ParameterTypeJavaScriptLua
cutsceneNamestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Simply checks if the cutscene has loaded and doesn't check via CutSceneManager as opposed to HAS_[THIS]_CUTSCENE_LOADED.
Full list of cutscene names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/cutsceneNames.json

Reference

Namespace
Cutscenes CUTSCENE
In the game
BOOL HAS_CUT_FILE_LOADED(const char* cutsceneName)
Hash
0xA1C996C2A744262E

Open in the interactive natives reference