This commit is contained in:
VegaZ
2021-04-08 00:21:11 +02:00
13 changed files with 201 additions and 237 deletions

View File

@@ -106,16 +106,17 @@ export default function animationSync() {
loadAnimDict(animDict, function () {
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
});
if (!endless) {
animationBreakTimer = setInterval(() => breakAnimation(name), 120000);
}
if (mp.players.local == entity) {
if (!endless) {
animationBreakTimer = setInterval(() => breakAnimation(name), 120000);
}
if (!loop) {
let a = setInterval(function () {
mp.events.callRemote("CLIENT:ClearAnimationData", true);
clearInterval(a);
mp.game.wait(500);
mp.events.callRemote("CLIENT:ClearAnimationData", true);
}, duration);
}
}

View File

@@ -8,7 +8,7 @@ export default function attachmentManager(game: IGame) {
attachmentMngr.register("weapondeal", "ex_prop_crate_ammo_bc", "chassis_dummy", new mp.Vector3(0.08, -0.9, -0.2), new mp.Vector3(0, 0, 0));
attachmentMngr.register("weapondeal1", "ex_office_swag_guns02", "chassis_dummy", new mp.Vector3(0, 0.8, 0), new mp.Vector3(0, 0, 0));
attachmentMngr.register("weapondeal2", "w_sg_pumpshotgun", "chassis_dummy", new mp.Vector3(0.4, 1.6, 0.62), new mp.Vector3(90, 0, 180));
attachmentMngr.register("handcuffs", "p_cs_cuffs_02_s", 28422, new mp.Vector3(0, 0, 0), new mp.Vector3(0, 90, 0));
attachmentMngr.register("handcuffs", "p_cs_cuffs_02_s", 28422, new mp.Vector3(-0.05, 0, 0), new mp.Vector3(90, 90, 0));
});
const attachmentMngr =