From b352cfdc18c9313891ba2689c8cfad7800f58f8e Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 26 May 2022 17:33:36 -0500 Subject: [PATCH] Woops checked wrong thing for anim --- scripts/server/npc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/server/npc.js b/scripts/server/npc.js index 553af199..536ae921 100644 --- a/scripts/server/npc.js +++ b/scripts/server/npc.js @@ -275,14 +275,14 @@ function spawnNPC(npcIndex) { if(ped) { getNPCData(npcIndex).ped = ped; setEntityData(ped, "vrr.dataIndex", npcIndex, false); - setElementInterior(ped, npcData.interior); if(npcData.animationName != "") { let animationId = getAnimationFromParams(npcData.animationName); - if(getAnimationData(animationId) != false) { - setEntityData(ped, "vrr.animation", animationId, true); + if(animationId != false) { + setEntityData(ped, "vrr.anim", animationId, true); } } - forcePlayerToSyncElementProperties(null, ped); + setElementDimension(ped, npcData.dimension); + setElementInterior(ped, npcData.interior); } }