Fix item usage anims freezing player

This commit is contained in:
Vortrex
2022-07-27 00:46:43 -05:00
parent 945a44506b
commit a8843dba20

View File

@@ -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);
}