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);
|
||||
|
||||
Reference in New Issue
Block a user