Don't freeze players for certain anims

This commit is contained in:
Vortrex
2022-02-13 19:31:00 -06:00
parent af1d175967
commit b64e318c30

View File

@@ -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;