diff --git a/ReallifeGamemode.Client/Gui/deathscreen.ts b/ReallifeGamemode.Client/Gui/deathscreen.ts index cfd7c06d..709c65a4 100644 --- a/ReallifeGamemode.Client/Gui/deathscreen.ts +++ b/ReallifeGamemode.Client/Gui/deathscreen.ts @@ -80,7 +80,7 @@ export default function deathScreen() { var alpha = fade + Math.floor(currentDate.getTime() / 1000 - deathDate.getTime() / 1000); if (deathSeconds >= 0) { mp.game.graphics.set2dLayer(2); - mp.game.graphics.drawSprite("Mptattoos", "clearout", 0.625, 0.52, 0.1, 0.1, 0, 255, 255, 255, 236); + mp.game.graphics.drawSprite("Mptattoos", "clearout", 0.625, 0.5, 0.1, 0.1, 0, 255, 255, 255, 236); mp.game.graphics.drawText("Respawn in: ~y~" + deathSeconds, [0.5, 0.5], { font: 7, @@ -89,7 +89,7 @@ export default function deathScreen() { outline: true, centre: false }); - mp.game.graphics.drawText(medicString, [0.5, 0.975], + mp.game.graphics.drawText(medicString, [0.5, 0.945], { font: 4, color: [255, 255, 255, 255], diff --git a/ReallifeGamemode.Client/Tuning/main.ts b/ReallifeGamemode.Client/Tuning/main.ts index 02155a3a..055f8ffc 100644 --- a/ReallifeGamemode.Client/Tuning/main.ts +++ b/ReallifeGamemode.Client/Tuning/main.ts @@ -9,6 +9,7 @@ const Menu = NativeUI.Menu; const UIMenuItem = NativeUI.UIMenuItem; const BadgeStyle = NativeUI.BadgeStyle; const Point = NativeUI.Point; +const Color = NativeUI.Color; import vehicleColors from './colors'; @@ -170,6 +171,11 @@ export default function tuning(globalData: IGlobalData) { mainMenu = new Menu("Fahrzeugwerkstatt", carName, new Point(50, 50), null, null); + var repairItem = new UIMenuItem("Fahrzeug reparieren"); + mainMenu.AddItem(repairItem); + repairItem.BackColor = new Color(94, 94, 94); + repairItem.HighlightedBackColor = new Color(105, 105, 105); + var currentMod = new Array(); var currentActiveModItem = new Array(); @@ -284,6 +290,14 @@ export default function tuning(globalData: IGlobalData) { }); }); + + + mainMenu.ItemSelect.on((item: NativeUI.UIMenuItem, index: number) => { + if (item === repairItem) { + mp.events.callRemote("repairVehicle"); + }; + }); + mainMenu.Visible = true; mainMenu.MenuClose.on(() => {