callScaleformMovieMethodWithNumberAndString
CALL_SCALEFORM_MOVIE_METHOD_WITH_NUMBER_AND_STRING0xEF662D8D57E290B1The 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.
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
): voidcallScaleformMovieMethodWithNumberAndString(
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
callScaleformMovieMethodWithNumberAndString(
scaleform, methodName, floatParam1, floatParam2, floatParam3, floatParam4, floatParam5,
stringParam1, stringParam2, stringParam3, stringParam4, stringParam5
);callScaleformMovieMethodWithNumberAndString(
scaleform, methodName, floatParam1, floatParam2, floatParam3, floatParam4, floatParam5,
stringParam1, stringParam2, stringParam3, stringParam4, stringParam5
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scaleform | int | number | integer |
methodName | string | string | string |
floatParam1 | float | number | number |
floatParam2 | float | number | number |
floatParam3 | float | number | number |
floatParam4 | float | number | number |
floatParam5 | float | number | number |
stringParam1 | string | string | string |
stringParam2 | string | string | string |
stringParam3 | string | string | string |
stringParam4 | string | string | string |
stringParam5 | string | string | string |
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