diff --git a/ReallifeGamemode.Client/Player/keys.ts b/ReallifeGamemode.Client/Player/keys.ts index 725567f5..596f2b8f 100644 --- a/ReallifeGamemode.Client/Player/keys.ts +++ b/ReallifeGamemode.Client/Player/keys.ts @@ -7,7 +7,7 @@ //https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes import { Key } from '../game'; -import BetterBindings from 'ragemp-better-bindings'; +import KeyBinder from 'ragemp-better-bindings'; export default function keys(globalData: IGlobalData) { var showGui = true; @@ -141,7 +141,16 @@ export default function keys(globalData: IGlobalData) { mp.gui.takeScreenshot(new Date().toLocaleDateString(), 1, 100, 80); }); - BetterBindings.bind('ctrl+h', () => { + KeyBinder.bind("alt+h", () => { + mp.events.call("keyPress:ControllH"); //hup + return; + }); + + KeyBinder.bind("ctrl+h", () => { + mp.events.call("keyPress:ControllH"); //hup + return; + }); + KeyBinder.bind("h", () => { mp.events.call("keyPress:ControllH"); //hup return; }); diff --git a/ReallifeGamemode.Client/util/attachmentMngr.ts b/ReallifeGamemode.Client/util/attachmentMngr.ts index 516cacb3..ec5bc2bb 100644 --- a/ReallifeGamemode.Client/util/attachmentMngr.ts +++ b/ReallifeGamemode.Client/util/attachmentMngr.ts @@ -8,6 +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)); }); const attachmentMngr =