GraphicsClientNot in this build1 output

hasScaleformMovieNamedLoaded

_HAS_SCALEFORM_MOVIE_NAMED_LOADED0x9743BCCF7CD6E1F6

The GTA V native _HAS_SCALEFORM_MOVIE_NAMED_LOADED of the GRAPHICS namespace, as LS:MP client scripts call it: the global function hasScaleformMovieNamedLoaded, in JavaScript and in Lua.

SignatureJavaScript
hasScaleformMovieNamedLoaded(scaleformName: string): [
  ok: boolean,
  scaleformHandle: number
]
SignatureLua
hasScaleformMovieNamedLoaded(scaleformName: string): boolean, 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 [ok, scaleformHandle] = hasScaleformMovieNamedLoaded(scaleformName);
Lua
local ok, scaleformHandle = hasScaleformMovieNamedLoaded(scaleformName)

Parameters

ParameterTypeJavaScriptLua
scaleformNamestringstringstring

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2scaleformHandleintnumberintegeroutput

Reference

Namespace
Graphics GRAPHICS
In the game
BOOL _HAS_SCALEFORM_MOVIE_NAMED_LOADED(int* scaleformHandle, const char* scaleformName)
Hash
0x9743BCCF7CD6E1F6
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference