The Lab
ENTITY native

GET_ENTITY_COORDS

returns Vector33 paramsbuild 1207

Returns the world coordinates of the entity.

Signature

C
Vector3 GET_ENTITY_COORDS(Entity entity, BOOL alive, BOOL realCoords); // 0xA86D5F069399F44D b1207

Parameters

#NameType
1entityEntity
2aliveBOOL
3realCoordsBOOL

Facts

Facts about GET_ENTITY_COORDS
Name
GET_ENTITY_COORDS
Hash
0xA86D5F069399F44D
Namespace
Returns
Vector3
Game build
1207

Examples

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

Lua
local coords = Citizen.InvokeNative(0xA86D5F069399F44D, -- GET_ENTITY_COORDS
  PlayerPedId(), -- Entity entity
  false, -- BOOL alive
  false, -- BOOL realCoords
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0xA86D5F069399F44D", // GET_ENTITY_COORDS
  PlayerPedId(), // Entity entity
  false, // BOOL alive
  false, // BOOL realCoords
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0xA86D5F069399F44D, // GET_ENTITY_COORDS
  API.PlayerPedId(), // Entity entity
  false, // BOOL alive
  false // BOOL realCoords
);
All ENTITY natives

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