GraphicsClient

callScaleformMovieMethodWithNumberAndString

CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER_AND_STRING0xEF662D8D57E290B1

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

SignatureJavaScript
callScaleformMovieMethodWithNumberAndString(
  scaleform: number,
  methodName: string,
  floatParam1: number,
  floatParam2: number,
  floatParam3: number,
  floatParam4: number,
  floatParam5: number,
  stringParam1: string,
  stringParam2: string,
  stringParam3: string,
  stringParam4: string,
  stringParam5: string
): void
SignatureLua
callScaleformMovieMethodWithNumberAndString(
  scaleform: integer,
  methodName: string,
  floatParam1: number,
  floatParam2: number,
  floatParam3: number,
  floatParam4: number,
  floatParam5: number,
  stringParam1: string,
  stringParam2: string,
  stringParam3: string,
  stringParam4: string,
  stringParam5: string
)

Usage

JavaScript
callScaleformMovieMethodWithNumberAndString(
  scaleform, methodName, floatParam1, floatParam2, floatParam3, floatParam4, floatParam5,
  stringParam1, stringParam2, stringParam3, stringParam4, stringParam5
);
Lua
callScaleformMovieMethodWithNumberAndString(
    scaleform, methodName, floatParam1, floatParam2, floatParam3, floatParam4, floatParam5,
    stringParam1, stringParam2, stringParam3, stringParam4, stringParam5
)

Parameters

ParameterTypeJavaScriptLua
scaleformintnumberinteger
methodNamestringstringstring
floatParam1floatnumbernumber
floatParam2floatnumbernumber
floatParam3floatnumbernumber
floatParam4floatnumbernumber
floatParam5floatnumbernumber
stringParam1stringstringstring
stringParam2stringstringstring
stringParam3stringstringstring
stringParam4stringstringstring
stringParam5stringstringstring

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 both float and string parameters (in their respective order).

The number of parameters passed to the function varies, so the end of the float parameters is represented by -1.0, and the end of the string parameters is represented by 0 (NULL).

NOTE: The order of parameters in the function prototype is important! All float parameters must come first, followed by the string parameters.

Examples:

// function MY_FUNCTION(floatParam1, floatParam2, stringParam)
callScaleformMovieMethodWithNumberAndString(scaleform, "MY_FUNCTION", 10.0, 20.0, -1.0, -1.0, -1.0, "String param", 0, 0, 0, 0);

// function MY_FUNCTION_2(floatParam, stringParam1, stringParam2)
callScaleformMovieMethodWithNumberAndString(scaleform, "MY_FUNCTION_2", 10.0, -1.0, -1.0, -1.0, -1.0, "String param #1", "String param #2", 0, 0, 0);

Reference

Namespace
Graphics GRAPHICS
In the game
void CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER_AND_STRING(int scaleform, const char* methodName, float floatParam1, float floatParam2, float floatParam3, float floatParam4, float floatParam5, const char* stringParam1, const char* stringParam2, const char* stringParam3, const char* stringParam4, const char* stringParam5)
Hash
0xEF662D8D57E290B1
Formerly
_CALL_SCALEFORM_MOVIE_FUNCTION_MIXED_PARAMS

Open in the interactive natives reference