GraphicsClient

callScaleformMovieMethodWithNumber

CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER0xD0837058AE2E4BEE

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

SignatureJavaScript
callScaleformMovieMethodWithNumber(
  scaleform: number,
  methodName: string,
  param1: number,
  param2: number,
  param3: number,
  param4: number,
  param5: number
): void
SignatureLua
callScaleformMovieMethodWithNumber(
  scaleform: integer,
  methodName: string,
  param1: number,
  param2: number,
  param3: number,
  param4: number,
  param5: number
)

Usage

JavaScript
callScaleformMovieMethodWithNumber(
  scaleform, methodName, param1, param2, param3, param4, param5
);
Lua
callScaleformMovieMethodWithNumber(
    scaleform, methodName, param1, param2, param3, param4, param5
)

Parameters

ParameterTypeJavaScriptLua
scaleformintnumberinteger
methodNamestringstringstring
param1floatnumbernumber
param2floatnumbernumber
param3floatnumbernumber
param4floatnumbernumber
param5floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Calls the Scaleform function and passes the parameters as floats.

The number of parameters passed to the function varies, so the end of the parameter list is represented by -1.0.

Reference

Namespace
Graphics GRAPHICS
In the game
void CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER(int scaleform, const char* methodName, float param1, float param2, float param3, float param4, float param5)
Hash
0xD0837058AE2E4BEE
Formerly
_CALL_SCALEFORM_MOVIE_FUNCTION_FLOAT_PARAMS

Open in the interactive natives reference