GET_ENTITY_COORDS
Returns the world coordinates of the entity.
Signature
Vector3 GET_ENTITY_COORDS(Entity entity, BOOL alive, BOOL realCoords); // 0xA86D5F069399F44D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | alive | BOOL |
| 3 | realCoords | BOOL |
Facts
| 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.
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)const coords = Citizen.invokeNative("0xA86D5F069399F44D", // GET_ENTITY_COORDS
PlayerPedId(), // Entity entity
false, // BOOL alive
false, // BOOL realCoords
Citizen.resultAsVector()
);
const [x, y, z] = coordsVector3 coords = Function.Call<Vector3>((Hash)0xA86D5F069399F44D, // GET_ENTITY_COORDS
API.PlayerPedId(), // Entity entity
false, // BOOL alive
false // BOOL realCoords
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.