From 5c472757803a64cb6c1bc41ff1011f0b411f85c5 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 2 Oct 2021 16:46:51 -0500 Subject: [PATCH] Only enable mouse camera on anims that move the ped --- scripts/server/animation.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/server/animation.js b/scripts/server/animation.js index 1793b2bb..e4b8cad6 100644 --- a/scripts/server/animation.js +++ b/scripts/server/animation.js @@ -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); + } + } } // ===========================================================================