lol
This commit is contained in:
@@ -9,11 +9,6 @@
|
|||||||
animationSyncData.register("getUncuff", "mp_arresting", "b_uncuff", 5500, false, 0);
|
animationSyncData.register("getUncuff", "mp_arresting", "b_uncuff", 5500, false, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
const pairData = [
|
|
||||||
{ from: "getArrest", transitionTo: "Cuffed" },
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
const animationSyncData =
|
const animationSyncData =
|
||||||
{
|
{
|
||||||
animations: [],
|
animations: [],
|
||||||
@@ -67,14 +62,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let index = mp.game.joaat(player.getVariable("AnimationData"));
|
let index = mp.game.joaat(player.getVariable("AnimationData"));
|
||||||
if (!animationSyncData.animations.hasOwnProperty(index)) return;
|
|
||||||
|
|
||||||
let currentAnim = animationSyncData.animations[index];
|
let currentAnim = animationSyncData.animations[index];
|
||||||
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
||||||
|
|
||||||
if (loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
if (loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
||||||
loadAnimDict(animDict, function () {
|
loadAnimDict(animDict, function () {
|
||||||
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
|
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -108,7 +102,7 @@
|
|||||||
let { id, name, animDict, animName, duration, loop, flag } = animData;
|
let { id, name, animDict, animName, duration, loop, flag } = animData;
|
||||||
|
|
||||||
loadAnimDict(animDict, function () {
|
loadAnimDict(animDict, function () {
|
||||||
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
|
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
|
||||||
});
|
});
|
||||||
|
|
||||||
let a = setInterval(function () {
|
let a = setInterval(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user