From d0a97eaab4d2092c236c8bbb96fa1a708589cef8 Mon Sep 17 00:00:00 2001 From: AvaN0x Date: Tue, 16 Aug 2022 09:51:52 +0200 Subject: [PATCH] fix: :bug: fix possible bone issue when using non freemode peds --- client/Syncing.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/Syncing.lua b/client/Syncing.lua index 7d7194d..1964bda 100644 --- a/client/Syncing.lua +++ b/client/Syncing.lua @@ -54,8 +54,8 @@ AddEventHandler("SyncPlayEmote", function(emote, player) local xRot = DP.Shared[emote].AnimationOptions.xRot or 0.0 local yRot = DP.Shared[emote].AnimationOptions.yRot or 0.0 local zRot = DP.Shared[emote].AnimationOptions.zRot or 0.0 - AttachEntityToEntity(ply, pedInFront, GetPedBoneIndex(ply, bone), xPos, yPos, zPos, xRot, yRot, zRot, - false, false, false, true, 1, true) + AttachEntityToEntity(ply, pedInFront, GetPedBoneIndex(pedInFront, bone), xPos, yPos, zPos, xRot, yRot, + zRot, false, false, false, true, 1, true) end end @@ -95,8 +95,8 @@ AddEventHandler("SyncPlayEmoteSource", function(emote, player) local xRot = AnimationOptions.xRot or 0.0 local yRot = AnimationOptions.yRot or 0.0 local zRot = AnimationOptions.zRot or 0.0 - AttachEntityToEntity(ply, pedInFront, GetPedBoneIndex(ply, bone), xPos, yPos, zPos, xRot, yRot, zRot, false, - false, false, true, 1, true) + AttachEntityToEntity(ply, pedInFront, GetPedBoneIndex(pedInFront, bone), xPos, yPos, zPos, xRot, yRot, zRot, + false, false, false, true, 1, true) end end local coords = GetOffsetFromEntityInWorldCoords(pedInFront, SyncOffsetSide, SyncOffsetFront, 0.0)