mirror of
https://github.com/jimathy/rpemotes.git
synced 2026-07-31 17:28:38 -04:00
fix: change bone name to index (#107)
Change from the usage of GetEntityBoneIndexByName to GetPedBoneIndex to keep consistency.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user