PedClient

getPedBoneIndex

GET_PED_BONE_INDEX0x3F428D08BE5AAE31

The GTA V native GET_PED_BONE_INDEX of the PED namespace, as LS:MP client scripts call it: the global function getPedBoneIndex, in JavaScript and in Lua.

SignatureJavaScript
getPedBoneIndex(ped: Ped, boneId: number): number
SignatureLua
getPedBoneIndex(ped: Ped, boneId: integer): integer

Usage

JavaScript
const result = getPedBoneIndex(ped, boneId);
Lua
local result = getPedBoneIndex(ped, boneId)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
boneIdintnumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

no bone= -1

boneIds:

       SKEL_ROOT = 0x0,
  SKEL_Pelvis = 0x2e28,
SKEL_L_Thigh = 0xe39f,
   SKEL_L_Calf = 0xf9bb,
SKEL_L_Foot = 0x3779,
SKEL_L_Toe0 = 0x83c,
 IK_L_Foot = 0xfedd,
  PH_L_Foot = 0xe175,
  MH_L_Knee = 0xb3fe,
  SKEL_R_Thigh = 0xca72,
   SKEL_R_Calf = 0x9000,
SKEL_R_Foot = 0xcc4d,
SKEL_R_Toe0 = 0x512d,
IK_R_Foot = 0x8aae,
  PH_R_Foot = 0x60e6,
  MH_R_Knee = 0x3fcf,
  RB_L_ThighRoll = 0x5c57,
 RB_R_ThighRoll = 0x192a,
 SKEL_Spine_Root = 0xe0fd,
SKEL_Spine0 = 0x5c01,
SKEL_Spine1 = 0x60f0,
SKEL_Spine2 = 0x60f1,
SKEL_Spine3 = 0x60f2,
SKEL_L_Clavicle = 0xfcd9,
SKEL_L_UpperArm = 0xb1c5,
SKEL_L_Forearm = 0xeeeb,
 SKEL_L_Hand = 0x49d9,
SKEL_L_Finger00 = 0x67f2,
SKEL_L_Finger01 = 0xff9,
 SKEL_L_Finger02 = 0xffa,
 SKEL_L_Finger10 = 0x67f3,
SKEL_L_Finger11 = 0x1049,
SKEL_L_Finger12 = 0x104a,
SKEL_L_Finger20 = 0x67f4,
SKEL_L_Finger21 = 0x1059,
SKEL_L_Finger22 = 0x105a,
SKEL_L_Finger30 = 0x67f5,
SKEL_L_Finger31 = 0x1029,
SKEL_L_Finger32 = 0x102a,
SKEL_L_Finger40 = 0x67f6,
SKEL_L_Finger41 = 0x1039,
SKEL_L_Finger42 = 0x103a,
PH_L_Hand = 0xeb95,
  IK_L_Hand = 0x8cbd,
  RB_L_ForeArmRoll = 0xee4f,
   RB_L_ArmRoll = 0x1470,
   MH_L_Elbow = 0x58b7,
 SKEL_R_Clavicle = 0x29d2,
SKEL_R_UpperArm = 0x9d4d,
SKEL_R_Forearm = 0x6e5c,
 SKEL_R_Hand = 0xdead,
SKEL_R_Finger00 = 0xe5f2,
SKEL_R_Finger01 = 0xfa10,
SKEL_R_Finger02 = 0xfa11,
SKEL_R_Finger10 = 0xe5f3,
SKEL_R_Finger11 = 0xfa60,
SKEL_R_Finger12 = 0xfa61,
SKEL_R_Finger20 = 0xe5f4,
SKEL_R_Finger21 = 0xfa70,
SKEL_R_Finger22 = 0xfa71,
SKEL_R_Finger30 = 0xe5f5,
SKEL_R_Finger31 = 0xfa40,
SKEL_R_Finger32 = 0xfa41,
SKEL_R_Finger40 = 0xe5f6,
SKEL_R_Finger41 = 0xfa50,
SKEL_R_Finger42 = 0xfa51,
PH_R_Hand = 0x6f06,
  IK_R_Hand = 0x188e,
  RB_R_ForeArmRoll = 0xab22,
   RB_R_ArmRoll = 0x90ff,
   MH_R_Elbow = 0xbb0,
  SKEL_Neck_1 = 0x9995,
SKEL_Head = 0x796e,
  IK_Head = 0x322c,
FACIAL_facialRoot = 0xfe2c,
  FB_L_Brow_Out_000 = 0xe3db,
  FB_L_Lid_Upper_000 = 0xb2b6,
 FB_L_Eye_000 = 0x62ac,
   FB_L_CheekBone_000 = 0x542e,
 FB_L_Lip_Corner_000 = 0x74ac,
FB_R_Lid_Upper_000 = 0xaa10,
 FB_R_Eye_000 = 0x6b52,
   FB_R_CheekBone_000 = 0x4b88,
 FB_R_Brow_Out_000 = 0x54c,
   FB_R_Lip_Corner_000 = 0x2ba6,
FB_Brow_Centre_000 = 0x9149,
 FB_UpperLipRoot_000 = 0x4ed2,
FB_UpperLip_000 = 0xf18f,
FB_L_Lip_Top_000 = 0x4f37,
   FB_R_Lip_Top_000 = 0x4537,
   FB_Jaw_000 = 0xb4a0,
 FB_LowerLipRoot_000 = 0x4324,
FB_LowerLip_000 = 0x508f,
FB_L_Lip_Bot_000 = 0xb93b,
   FB_R_Lip_Bot_000 = 0xc33b,
   FB_Tongue_000 = 0xb987,
  RB_Neck_1 = 0x8b93,
  IK_Root = 0xdd1c

Reference

Namespace
Ped PED
In the game
int GET_PED_BONE_INDEX(Ped ped, int boneId)
Hash
0x3F428D08BE5AAE31

Open in the interactive natives reference