The Lab
ENTITY native

_SET_ENTITY_COORDS_AND_HEADING

returns void8 paramsbuild 1207

Teleports the entity to the given coordinates and sets its heading in one call.

Signature

C
void _SET_ENTITY_COORDS_AND_HEADING(Entity entity, float xPos, float yPos, float zPos, float heading, BOOL xAxis, BOOL yAxis, BOOL zAxis); // 0x203BEFFDBE12E96A b1207

Parameters

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

Facts

Facts about _SET_ENTITY_COORDS_AND_HEADING
Name
_SET_ENTITY_COORDS_AND_HEADING
Hash
0x203BEFFDBE12E96A
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(0x203BEFFDBE12E96A, -- _SET_ENTITY_COORDS_AND_HEADING
  PlayerPedId(), -- Entity entity
  0.0, -- float xPos
  0.0, -- float yPos
  0.0, -- float zPos
  0.0, -- float heading
  false, -- BOOL xAxis
  false, -- BOOL yAxis
  false -- BOOL zAxis
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x203BEFFDBE12E96A", // _SET_ENTITY_COORDS_AND_HEADING
  PlayerPedId(), // Entity entity
  0.0, // float xPos
  0.0, // float yPos
  0.0, // float zPos
  0.0, // float heading
  false, // BOOL xAxis
  false, // BOOL yAxis
  false // BOOL zAxis
);
C#
Function.Call((Hash)0x203BEFFDBE12E96A, // _SET_ENTITY_COORDS_AND_HEADING
  API.PlayerPedId(), // Entity entity
  0.0f, // float xPos
  0.0f, // float yPos
  0.0f, // float zPos
  0.0f, // float heading
  false, // BOOL xAxis
  false, // BOOL yAxis
  false // BOOL zAxis
);
All ENTITY natives

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