Streaming::getIdealPlayerSwitchType: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
x1, y1, z1 -- Coords of your ped model<br>x2, y2, z2 -- Coords of the ped you want to switch to
x1, y1, z1 -- Coords of your ped model<br>x2, y2, z2 -- Coords of the ped you want to switch to
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">streaming.getIdealPlayerSwitchType(x1, y1, z1, x2, y2, z2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.streaming.getIdealPlayerSwitchType(x1, y1, z1, x2, y2, z2);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x1:''' float
*'''x1:''' float
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Streaming_function_c}}
{{Streaming_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 03:32, 27 May 2024

x1, y1, z1 -- Coords of your ped model
x2, y2, z2 -- Coords of the ped you want to switch to

Syntax

mp.game.streaming.getIdealPlayerSwitchType(x1, y1, z1, x2, y2, z2);

Required Arguments

  • x1: float
  • y1: float
  • z1: float
  • x2: float
  • y2: float
  • z2: float

Return value

  • int

Example

// todo

See also