Don't freeze players for certain anims
This commit is contained in:
@@ -18,7 +18,7 @@ function makePedPlayAnimation(pedId, animGroup, animId, animType, animSpeed, loo
|
|||||||
}
|
}
|
||||||
getElementFromId(pedId).addAnimation(animGroup, animId);
|
getElementFromId(pedId).addAnimation(animGroup, animId);
|
||||||
|
|
||||||
if(getElementFromId(pedId) == localPlayer && !freezePlayer) {
|
if(getElementFromId(pedId) == localPlayer && freezePlayer == true) {
|
||||||
inAnimation = true;
|
inAnimation = true;
|
||||||
setLocalPlayerControlState(false, false);
|
setLocalPlayerControlState(false, false);
|
||||||
localPlayer.collisionsEnabled = false;
|
localPlayer.collisionsEnabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user