Only enable mouse camera on anims that move the ped

This commit is contained in:
Vortrex
2021-10-02 16:46:51 -05:00
parent da175c6690
commit 5c47275780

View File

@@ -42,6 +42,12 @@ function playPlayerAnimationCommand(command, params, client) {
//setEntityData(getPlayerData(client).ped, "vrr.animation", animationSlot, true);
messagePlayerTip(client, `${getInlineChatColourByName("white")}Use ${getInlineChatColourByName("lightGrey")}/stopanim ${getInlineChatColourByName("white")}to stop your animation`);
makePedPlayAnimation(getPlayerData(client).ped, animationSlot, animationPositionOffset);
if(getAnimationData(animationSlot)[9] != VRR_ANIMMOVE_NONE) {
if(getGame() < GAME_GTA_SA) {
setPlayerMouseCameraState(client, true);
}
}
}
// ===========================================================================