hasScaleformMovieNamedLoaded
_HAS_SCALEFORM_MOVIE_NAMED_LOADED0x9743BCCF7CD6E1F6The 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.
hasScaleformMovieNamedLoaded(scaleformName: string): [
ok: boolean,
scaleformHandle: number
]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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scaleformName | string | string | string |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | scaleformHandle | int | number | integer | output |
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