Graphics::callScaleformMovieFunctionMixedParams

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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)
GRAPHICS::_CALL_SCALEFORM_MOVIE_FUNCTION_MIXED_PARAMS(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)
GRAPHICS::_CALL_SCALEFORM_MOVIE_FUNCTION_MIXED_PARAMS(scaleform, 'MY_FUNCTION_2', 10.0, -1.0, -1.0, -1.0, -1.0, 'String param #1', 'String param #2', 0, 0, 0);

Syntax

mp.game.graphics.callScaleformMovieFunctionMixedParams(scaleform, functionName, floatParam1, floatParam2, floatParam3, floatParam4, floatParam5, stringParam1, stringParam2, stringParam3, stringParam4, stringParam5);

Required Arguments

  • scaleform: int
  • functionName: String
  • floatParam1: float
  • floatParam2: float
  • floatParam3: float
  • floatParam4: float
  • floatParam5: float
  • stringParam1: String
  • stringParam2: String
  • stringParam3: String
  • stringParam4: String
  • stringParam5: String

Return value

  • Undefined

Example

// todo

See also