Fixes for IV

This commit is contained in:
Vortrex
2022-02-26 22:30:39 -06:00
parent a15b29e977
commit 8e225ed480
6 changed files with 43 additions and 16 deletions

View File

@@ -56,14 +56,18 @@ function makePedStopAnimation(pedId) {
return false;
}
if(getGame() == VRR_GAME_GTA_VC || getGame() == VRR_GAME_GTA_SA) {
getElementFromId(pedId).clearAnimations();
} else {
getElementFromId(pedId).clearObjective();
if(getGame() != VRR_GAME_GTA_IV) {
if(getGame() == VRR_GAME_GTA_VC || getGame() == VRR_GAME_GTA_SA) {
getElementFromId(pedId).clearAnimations();
} else {
getElementFromId(pedId).clearObjective();
}
}
if(getElementFromId(pedId) == localPlayer) {
localPlayer.collisionsEnabled = true;
if(getGame() != VRR_GAME_GTA_IV) {
localPlayer.collisionsEnabled = true;
}
setLocalPlayerControlState(true, false);
}
}