test
This commit is contained in:
@@ -141,17 +141,8 @@ export default function keys(globalData: IGlobalData) {
|
|||||||
mp.gui.takeScreenshot(new Date().toLocaleDateString(), 1, 100, 80);
|
mp.gui.takeScreenshot(new Date().toLocaleDateString(), 1, 100, 80);
|
||||||
});
|
});
|
||||||
|
|
||||||
KeyBinder.bind("alt+h", () => {
|
|
||||||
mp.events.call("keyPress:ControllH"); //hup
|
|
||||||
return;
|
|
||||||
});
|
|
||||||
|
|
||||||
KeyBinder.bind("ctrl+h", () => {
|
KeyBinder.bind("ctrl+h", () => {
|
||||||
mp.events.call("keyPress:ControllH"); //hup
|
mp.events.callRemote("keyPress:ControllH"); //hup
|
||||||
return;
|
|
||||||
});
|
|
||||||
KeyBinder.bind("h", () => {
|
|
||||||
mp.events.call("keyPress:ControllH"); //hup
|
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,8 @@
|
|||||||
mp.events.addDataHandler("AnimationData", (entity: PlayerMp, string) => {
|
mp.events.addDataHandler("AnimationData", (entity: PlayerMp, string) => {
|
||||||
entity.clearTasksImmediately();
|
entity.clearTasksImmediately();
|
||||||
if (string == null) {
|
if (string == null) {
|
||||||
|
blockInput = false;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -969,10 +969,12 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
[RemoteEvent("keyPress:ControllH")]
|
[RemoteEvent("keyPress:ControllH")]
|
||||||
public void KeyPressControllH(Player player)
|
public void KeyPressControllH(Player player)
|
||||||
{
|
{
|
||||||
if (player.HasAnimation("hup")) { player.ClearAnimation(); return; }
|
if (player.HasAnimation("hup")) { player.ClearAnimation(); player.AddAttachment("handcuffs", true); return; }
|
||||||
if (player.HasAnimation())
|
if (player.HasAnimation())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
player.AddAttachment("handcuffs", false);
|
||||||
|
|
||||||
player.SyncAnimation("hup");
|
player.SyncAnimation("hup");
|
||||||
ChatService.SendInRange(player.Position, 20, $"~m~{player.Name} stellt sich...");
|
ChatService.SendInRange(player.Position, 20, $"~m~{player.Name} stellt sich...");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user