Woops checked wrong thing for anim
This commit is contained in:
@@ -275,14 +275,14 @@ function spawnNPC(npcIndex) {
|
|||||||
if(ped) {
|
if(ped) {
|
||||||
getNPCData(npcIndex).ped = ped;
|
getNPCData(npcIndex).ped = ped;
|
||||||
setEntityData(ped, "vrr.dataIndex", npcIndex, false);
|
setEntityData(ped, "vrr.dataIndex", npcIndex, false);
|
||||||
setElementInterior(ped, npcData.interior);
|
|
||||||
if(npcData.animationName != "") {
|
if(npcData.animationName != "") {
|
||||||
let animationId = getAnimationFromParams(npcData.animationName);
|
let animationId = getAnimationFromParams(npcData.animationName);
|
||||||
if(getAnimationData(animationId) != false) {
|
if(animationId != false) {
|
||||||
setEntityData(ped, "vrr.animation", animationId, true);
|
setEntityData(ped, "vrr.anim", animationId, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
forcePlayerToSyncElementProperties(null, ped);
|
setElementDimension(ped, npcData.dimension);
|
||||||
|
setElementInterior(ped, npcData.interior);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user