From a8843dba200f79966c2f56116d4d418e69c47916 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 27 Jul 2022 00:46:43 -0500 Subject: [PATCH] Fix item usage anims freezing player --- scripts/server/netevents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/netevents.js b/scripts/server/netevents.js index 74012207..29b4eef8 100644 --- a/scripts/server/netevents.js +++ b/scripts/server/netevents.js @@ -10,7 +10,7 @@ function initNetworkEventsScript() { logToConsole(LOG_DEBUG, "[VRR.NetEvents]: Initializing network events script ..."); - logToConsole(LOG_DEBUG, "[VRR.NetEvents]: Network events script initialized!"); + logToConsole(LOG_INFO, "[VRR.NetEvents]: Network events script initialized!"); } // =========================================================================== @@ -1015,7 +1015,7 @@ function makePedStopAnimation(ped) { // =========================================================================== function forcePedAnimation(ped, animationSlot, positionOffset = 0) { - addEntityData(ped, "agrp.anim", animationSlot, true); + setEntityData(ped, "agrp.anim", animationSlot, true); sendNetworkEventToPlayer("agrp.forceAnim", null, getPedForNetworkEvent(ped), animationSlot, positionOffset); }