Bone index

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

`

1 Like

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.

hmm still didnt seem to work trying that

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

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

Also, use PlayerPedId()

still not having any luck with this

works with StartParticleFxLoopedOnEntity

so must be still be the bone index not working?

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)