> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/scripting-cyberpunk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/scripting-cyberpunk/scripting/snippets-and-examples/player/teleportation-locations.md).

# How To Teleport

How to teleport V

{% hint style="warning" %}
**When teleporting to otherwise inaccessible areas, you may not be able to exit these locations naturally. It is recommended that you log your location before teleporting so that you can teleport back after exploring said areas.**&#x20;
{% endhint %}

## How to Find Current Location

{% tabs %}
{% tab title="REDScript" %}

```swift
let player = GetPlayer(GetGameInstance());
let location = player.GetWorldPosition();

FTLog(Vector4.ToString(location));
```

{% endtab %}

{% tab title="Lua" %}

```lua
local player = Game.GetPlayer()
local position = player:GetWorldPosition()

print(Vector4.ToString(position))
```

{% endtab %}
{% endtabs %}

## How to Teleport to Location

{% tabs %}
{% tab title="REDScript" %}

```swift
let player = GetPlayer(GetGameInstance());
let teleportationFacility = GameInstance.GetTeleportationFacility(player.GetGame());
let desiredPosition = Vector4(-664.977112, 847.753113, 28.499626, 1.0);

teleportationFacility.Teleport(player, desiredPosition, player.GetWorldOrientation().ToEulerAngles());
```

{% endtab %}

{% tab title="Lua" %}

```lua
local player = GetPlayer()
local teleportationFacility = GameInstance.GetTeleportationFacility()
local desiredPosition = Vector4.new(-664.977112, 847.753113, 28.499626, 1.0)

teleportationFacility:Teleport(player, desiredPosition, player:GetWorldOrientation():ToEulerAngles());
```

{% endtab %}
{% endtabs %}

<details>

<summary><del>Deprecated Teleport Function</del></summary>

<pre class="language-lua"><code class="lang-lua"><strong>Game.TeleportPlayerToPosition(-2382.430176, -610.183594, 12.673874)
</strong></code></pre>

</details>
