_GET_PED_RAGDOLL_BONE_INDEX
Returns the ragdoll bone index matching the skeleton bone boneId on ped.
Signature
int _GET_PED_RAGDOLL_BONE_INDEX(Ped ped, int boneId); // 0xC5303F460A40D21D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | boneId | int |
Facts
| Name | _GET_PED_RAGDOLL_BONE_INDEX |
|---|---|
| Hash | 0xC5303F460A40D21D |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xC5303F460A40D21D, -- _GET_PED_RAGDOLL_BONE_INDEX
PlayerPedId(), -- Ped ped
0, -- int boneId
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xC5303F460A40D21D", // _GET_PED_RAGDOLL_BONE_INDEX
PlayerPedId(), // Ped ped
0, // int boneId
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xC5303F460A40D21D, // _GET_PED_RAGDOLL_BONE_INDEX
API.PlayerPedId(), // Ped ped
0 // int boneId
);Related PED natives
- _GET_PED_COMPONENT_CATEGORY_BY_INDEX
- _GET_PED_INDEX_FROM_PERSCHAR_HASH
- _GET_PED_WHO_HOGITIED_THIS_PED
- GET_PED_BONE_INDEX
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PED_REGISTER_PROP
- _GET_PED_REMAINING_REVIVAL_TIME
- _GET_PED_ATTITUDE
- _GET_PED_BLACKBOARD_BOOL
- _GET_PED_BLACKBOARD_FLOAT
- _GET_PED_BLACKBOARD_HASH
- _GET_PED_BRAWLING_STYLE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.