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

FiveM scripts done right

Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.

Browse Scripts →