Ui::setHudComponentPosition: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Use this function to set subtitles position.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.ui.setHudComponentPosition(id, p1, p2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.setHudComponentPosition(componentIndex, x, y);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''id:''' int
*'''componentIndex:''' int (Full list: [[HUD Components|HUD Components list]])
*'''p1:''' float
*'''x:''' float
*'''p2:''' float
*'''y:''' float
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
Line 13: Line 13:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_s_function_c}}
{{Ui_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:UI API]]

Latest revision as of 09:50, 20 January 2018

Use this function to set subtitles position.

Syntax

mp.game.ui.setHudComponentPosition(componentIndex, x, y);

Required Arguments

Return value

  • Undefined

Example

// todo

See also