GET_PED_BONE_INDEX
no bone = -1
Hash
0x3F428D08BE5AAE31Runtime name
GetPedBoneIndexNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x3F428D08BE5AAE31Signature
int GET_PED_BONE_INDEX(Ped ped, int boneId);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
boneId | int | — |
Returns int
Description
no bone = -1
Usage
local retval = GetPedBoneIndex(ped, boneId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x3F428D08BE5AAE31, ped, boneId, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedBoneIndex(ped, boneId);
// by hash
const retval = Citizen.invokeNative('0x3F428D08BE5AAE31', ped, boneId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x3F428D08BE5AAE31, ped, boneId);Enums and flags
- eAnimBoneTag 911 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.