diff --git a/scripts/client/animation.js b/scripts/client/animation.js index 3928f683..044d3899 100644 --- a/scripts/client/animation.js +++ b/scripts/client/animation.js @@ -18,7 +18,7 @@ function makePedPlayAnimation(pedId, animGroup, animId, animType, animSpeed, loo } getElementFromId(pedId).addAnimation(animGroup, animId); - if(getElementFromId(pedId) == localPlayer && !freezePlayer) { + if(getElementFromId(pedId) == localPlayer && freezePlayer == true) { inAnimation = true; setLocalPlayerControlState(false, false); localPlayer.collisionsEnabled = false;