GET_WORLD_POSITION_OF_ENTITY_BONE
Returns the world position of the given bone of the entity.
Signature
Vector3 GET_WORLD_POSITION_OF_ENTITY_BONE(Entity entity, int boneIndex); // 0x82CFA50E34681CA5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | boneIndex | int |
Facts
| 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.
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)const coords = Citizen.invokeNative("0x82CFA50E34681CA5", // GET_WORLD_POSITION_OF_ENTITY_BONE
PlayerPedId(), // Entity entity
0, // int boneIndex
Citizen.resultAsVector()
);
const [x, y, z] = coordsVector3 coords = Function.Call<Vector3>((Hash)0x82CFA50E34681CA5, // GET_WORLD_POSITION_OF_ENTITY_BONE
API.PlayerPedId(), // Entity entity
0 // int boneIndex
);Related ENTITY natives
- _GET_ENTITY_WORLD_POSITION_OF_DIMENSIONS
- _GET_HEADING_OF_ENTITY_BONE
- GET_ENTITY_BONE_INDEX_BY_NAME
- GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS
- GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- GET_CARRIABLE_ENTITY_STATE
- GET_ENTITY_ALPHA
- GET_ENTITY_ATTACHED_TO
- GET_ENTITY_COLLISION_DISABLED
- GET_ENTITY_COORDS
- GET_ENTITY_FORWARD_VECTOR
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.