Finish Cuff using AnimationSync
+ Added Command /cuff for LSPD and FIB (Wanteds can also be cuffed using the Interaction key). + Added Command /syncanim for Supporter * Player can now use CTRL + H to hup (/hup still usable) * Cuffs break after two minutes. TODO: - Players in Animation cannot enter Vehicle as driver neither can drive them. - Cuffed players will not loose their cuffs after reconnect.
This commit is contained in:
@@ -96,6 +96,13 @@
|
||||
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
|
||||
});
|
||||
|
||||
let b = setInterval(function () {
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", entity);
|
||||
if (name == "Cuffed" || name == "cuffed")
|
||||
mp.events.call("renderTextOnScreen", "Handschellen gebrochen.");
|
||||
clearInterval(b);
|
||||
}, 120000);
|
||||
|
||||
if (!loop) {
|
||||
let a = setInterval(function () {
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", entity);
|
||||
|
||||
@@ -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, 0, 0));
|
||||
attachmentMngr.register("handcuffs", "p_cs_cuffs_02_s", 28422, new mp.Vector3(0, 0, 0), new mp.Vector3(0, 90, 0));
|
||||
});
|
||||
|
||||
const attachmentMngr =
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
mp.events.add("render", () => {
|
||||
if (blockInput) {
|
||||
mp.game.controls.disableControlAction(32, 142, true);
|
||||
mp.game.controls.disableControlAction(32, 140, true);
|
||||
mp.game.controls.disableControlAction(32, 263, true);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user