Ui::setHudComponentPosition: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
mNo edit summary
 
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 (Full list: [[HUD Components|HUD Components list]])
*'''componentIndex:''' int (Full list: [[HUD Components|HUD Components list]])
*'''p1:''' float
*'''x:''' float
*'''p2:''' float
*'''y:''' float
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

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