From 51e0d63b3d00047929e5de44feee37c5e9edba33 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 11 Jan 2023 00:02:57 -0600 Subject: [PATCH] Use ped id for collision util --- scripts/client/animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }