Player::startTeleport: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
 
{{ClientsideJsFunction}}
==Syntax==
{{JSContainer|
<syntaxhighlight lang="javascript">player.startTeleport(x, y, z, heading, p5, p6, p7);</syntaxhighlight>
Teleports a player to given location.
=== Required Arguments ===
=== Required Arguments ===
*'''x:''' float
*'''x:''' float
Line 7: Line 7:
*'''z:''' float
*'''z:''' float
*'''heading:''' float
*'''heading:''' float
*'''p5:''' Boolean
*'''tpVehicle:''' Boolean
*'''p6:''' Boolean
*'''setToGround:''' Boolean
*'''p7:''' Boolean
*'''fadeOut:''' Boolean
 
===Return value===
===Return value===
*'''Undefined'''
*''' {{RageType|void}} '''
 
==Syntax==
<syntaxhighlight lang="javascript">
mp.game.player.startTeleport(x, y, z, heading, tpVehicle, setToGround, fadeOut);
</syntaxhighlight>
 
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.player.startTeleport(573.07, -352.55, 43.21, 0, false, true, true);
</syntaxhighlight>
</syntaxhighlight>
}}
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 12:22, 28 April 2024

Client-Side
Function

 JavaScript



JavaScript Syntax

Teleports a player to given location.

Required Arguments

  • x: float
  • y: float
  • z: float
  • heading: float
  • tpVehicle: Boolean
  • setToGround: Boolean
  • fadeOut: Boolean

Return value

  • void

Syntax

mp.game.player.startTeleport(x, y, z, heading, tpVehicle, setToGround, fadeOut);

Example

mp.game.player.startTeleport(573.07, -352.55, 43.21, 0, false, true, true);



See also