ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
client

SetEntityCoords

FiveM client native documentation with a Lua example.

Summary

Moves an entity (ped, vehicle, or object) to specific world coordinates. The standard native for teleporting players and objects.

Returns

void

Parameters

entitynumberThe entity handle to move.
x, y, zfloatThe destination coordinates.
alivebooleanUsually false. Legacy/unused flag.
deadFlag, ragdollFlag, clearAreabooleanPhysics and area-clearing flags — commonly false, false, true.

Example

local ped = PlayerPedId()
SetEntityCoords(ped, 200.0, -1000.0, 30.0, false, false, false, true)

Common pitfalls

  • When teleporting into a new area, request the collision/ground or the player may fall through the map before it streams in.
  • For vehicles, teleport the vehicle, not just the ped, or the player exits the car.

Related natives

Related guides

Need protected areas on your map?

Viper Safe-Zone draws polygon safe zones in-game — no hand-edited coordinates — with weapon, combat and vehicle-speed rules per zone.

See Viper Safe-Zone →