fix: change bone name to index (#107)

Change from the usage of GetEntityBoneIndexByName to GetPedBoneIndex to keep consistency.
This commit is contained in:
Mads
2023-01-16 17:30:46 +01:00
committed by GitHub
parent e7d11acf8c
commit 2efffe5883

View File

@@ -326,7 +326,7 @@ AddStateBagChangeHandler('ptfx', nil, function(bagName, key, value, _unused, rep
local name = stateBag.ptfxName
local offset = stateBag.ptfxOffset
local rot = stateBag.ptfxRot
local boneIndex = stateBag.ptfxBone and GetEntityBoneIndexByName(plyPed, stateBag.ptfxBone) or GetEntityBoneIndexByName(name, "VFX")
local boneIndex = stateBag.ptfxBone and GetPedBoneIndex(plyPed, stateBag.ptfxBone) or GetEntityBoneIndexByName(name, "VFX")
local scale = stateBag.ptfxScale or 1
local color = stateBag.ptfxColor
local propNet = stateBag.ptfxPropNet