found it
This commit is contained in:
@@ -105,12 +105,14 @@
|
||||
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
|
||||
});
|
||||
|
||||
if (!loop) {
|
||||
let a = setInterval(function () {
|
||||
if (entity == mp.players.local) {
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", entity);
|
||||
}
|
||||
clearInterval(a);
|
||||
}, duration);
|
||||
}
|
||||
});
|
||||
|
||||
mp.events.add("render", () => {
|
||||
|
||||
Reference in New Issue
Block a user