The Lab
ENTITY native

GET_WORLD_POSITION_OF_ENTITY_BONE

returns Vector32 paramsbuild 1207

Returns the world position of the given bone of the entity.

Signature

C
Vector3 GET_WORLD_POSITION_OF_ENTITY_BONE(Entity entity, int boneIndex); // 0x82CFA50E34681CA5 b1207

Parameters

#NameType
1entityEntity
2boneIndexint

Facts

Facts about GET_WORLD_POSITION_OF_ENTITY_BONE
Name
GET_WORLD_POSITION_OF_ENTITY_BONE
Hash
0x82CFA50E34681CA5
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(0x82CFA50E34681CA5, -- GET_WORLD_POSITION_OF_ENTITY_BONE
  PlayerPedId(), -- Entity entity
  0, -- int boneIndex
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0x82CFA50E34681CA5", // GET_WORLD_POSITION_OF_ENTITY_BONE
  PlayerPedId(), // Entity entity
  0, // int boneIndex
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0x82CFA50E34681CA5, // GET_WORLD_POSITION_OF_ENTITY_BONE
  API.PlayerPedId(), // Entity entity
  0 // int boneIndex
);
All ENTITY natives

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