diff --git a/scripts/client/animation.js b/scripts/client/animation.js index 1c85af40..48119767 100644 --- a/scripts/client/animation.js +++ b/scripts/client/animation.js @@ -27,7 +27,7 @@ function makePedPlayAnimation(pedId, animationSlot, positionOffset) { let freezePlayer = false; switch (animationData.moveType) { case V_ANIMMOVE_FORWARD: { - setElementCollisionsEnabled(ped, false); + setElementCollisionsEnabled(pedId, false); if (ped.isSyncer) { setElementPosition(ped, getPosInFrontOfPos(getElementPosition(pedId), fixAngle(getElementHeading(pedId)), positionOffset)); }