The Lab
ENTITY native

SET_ENTITY_COORDS

returns void8 paramsbuild 1207

Teleports the entity to the given coordinates, optionally clearing the area.

Signature

C
void SET_ENTITY_COORDS(Entity entity, float xPos, float yPos, float zPos, BOOL xAxis, BOOL yAxis, BOOL zAxis, BOOL clearArea); // 0x06843DA7060A026B b1207

Parameters

#NameType
1entityEntity
2xPosfloat
3yPosfloat
4zPosfloat
5xAxisBOOL
6yAxisBOOL
7zAxisBOOL
8clearAreaBOOL

Facts

Facts about SET_ENTITY_COORDS
Name
SET_ENTITY_COORDS
Hash
0x06843DA7060A026B
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x06843DA7060A026B, -- SET_ENTITY_COORDS
  PlayerPedId(), -- Entity entity
  0.0, -- float xPos
  0.0, -- float yPos
  0.0, -- float zPos
  false, -- BOOL xAxis
  false, -- BOOL yAxis
  false, -- BOOL zAxis
  false -- BOOL clearArea
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x06843DA7060A026B", // SET_ENTITY_COORDS
  PlayerPedId(), // Entity entity
  0.0, // float xPos
  0.0, // float yPos
  0.0, // float zPos
  false, // BOOL xAxis
  false, // BOOL yAxis
  false, // BOOL zAxis
  false // BOOL clearArea
);
C#
Function.Call((Hash)0x06843DA7060A026B, // SET_ENTITY_COORDS
  API.PlayerPedId(), // Entity entity
  0.0f, // float xPos
  0.0f, // float yPos
  0.0f, // float zPos
  false, // BOOL xAxis
  false, // BOOL yAxis
  false, // BOOL zAxis
  false // BOOL clearArea
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.