Bone index

help
lua

#1

having trouble getting bone ID
trying this

local scale = 10.0
local bone = GetPedBoneIndex(getplayerped(-1), 0x796E) – also tried SKEL_Head
StartParticleFxLoopedOnPedBone(“scr_sparking_generator”, getplayerped(-1) , 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, bone, scale, false, false, false)

can any one point me in the right way

`


#2

You might be using the wrong value for boneindex

“SKEL_Head”,“4103”,“31086”
“BONENAME”,“BONETYPE”,“BONETAG”

Try replacing 0X796E with 31086 and see if that works for you.
Usually you need to use the BONETAG value.


#3

hmm still didnt seem to work trying that


#4

Try doing
local ped = GetPlayerPed(-1)
local bone = GetPedBoneIndex(ped, 31086)


#5

Thats wrong, LUA is case sensitive, so it would be GetPlayerPed

Also, use PlayerPedId()


#6

still not having any luck with this

works with StartParticleFxLoopedOnEntity

so must be still be the bone index not working?


#7

got it

StartParticleFxLoopedOnPedBone(“scr_sparking_generator”, GetPlayerPed(-1) , 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 39317, 1.0, false, false, false)