Graphics::pushScaleformMovieFunctionFromHudComponent: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Pushes a function from the Hud component Scaleform onto the stack. Same behavior as GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION, just a hud component id instead of a Scaleform.<br><br>Known components:<br>19 - MP_RANK_BAR<br>20 - HUD_DIRECTOR_MODE<br><br>This native requires more research - all information can be found inside of 'hud.gfx'. Using a decompiler, the different components are located under 'scripts/__Packages/com/rockstargames/gtav/hud/hudComponents' and 'scripts/__Packages/com/rockstargames/gtav/Multiplayer'.
Pushes a function from the Hud component Scaleform onto the stack. Same behavior as GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION, just a hud component id instead of a Scaleform.<br><br>Known components:<br>19 - MP_RANK_BAR<br>20 - HUD_DIRECTOR_MODE<br><br>This native requires more research - all information can be found inside of 'hud.gfx'. Using a decompiler, the different components are located under 'scripts/__Packages/com/rockstargames/gtav/hud/hudComponents' and 'scripts/__Packages/com/rockstargames/gtav/Multiplayer'.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">graphics.pushScaleformMovieFunctionFromHudComponent(hudComponent, functionName);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.graphics.pushScaleformMovieFunctionFromHudComponent(hudComponent, functionName);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''hudComponent:''' int
*'''hudComponent:''' int
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Graphics_function_c}}
{{Graphics_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:13, 6 May 2017

Pushes a function from the Hud component Scaleform onto the stack. Same behavior as GRAPHICS::_PUSH_SCALEFORM_MOVIE_FUNCTION, just a hud component id instead of a Scaleform.

Known components:
19 - MP_RANK_BAR
20 - HUD_DIRECTOR_MODE

This native requires more research - all information can be found inside of 'hud.gfx'. Using a decompiler, the different components are located under 'scripts/__Packages/com/rockstargames/gtav/hud/hudComponents' and 'scripts/__Packages/com/rockstargames/gtav/Multiplayer'.

Syntax

mp.game.graphics.pushScaleformMovieFunctionFromHudComponent(hudComponent, functionName);

Required Arguments

  • hudComponent: int
  • functionName: String

Return value

  • Boolean

Example

// todo

See also