From 35f325e628bef1b5c028e38d031126617b3ad627 Mon Sep 17 00:00:00 2001 From: balbo Date: Mon, 3 Aug 2020 00:07:24 +0200 Subject: [PATCH] atm bei fahrschule --- ReallifeGamemode.Server/Managers/ATMManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Managers/ATMManager.cs b/ReallifeGamemode.Server/Managers/ATMManager.cs index 6ac4ba08..6cb8e769 100644 --- a/ReallifeGamemode.Server/Managers/ATMManager.cs +++ b/ReallifeGamemode.Server/Managers/ATMManager.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using System.Numerics; using GTANetworkAPI; using ReallifeGamemode.Database.Entities; using ReallifeGamemode.Database.Models; @@ -64,13 +65,17 @@ namespace ReallifeGamemode.Server.Managers { foreach (var currentATM in dbContext.ATMs) { - var currentColShape = NAPI.ColShape.CreateCylinderColShape(new Vector3(currentATM.X, currentATM.Y, currentATM.Z), 2.5f, 3, 0); + var currentColShape = NAPI.ColShape.CreateCylinderColShape(new GTANetworkAPI.Vector3(currentATM.X, currentATM.Y, currentATM.Z), 2.5f, 3, 0); currentColShape.OnEntityEnterColShape += EnterATMRange; currentColShape.OnEntityExitColShape += ExitATMRange; ATMColShapes.Add(currentColShape); currentColShape.SetData("id", currentATM.Id); } } + + //ATM bei der Fahrschule, Textlabel + NAPI.TextLabel.CreateTextLabel("~y~ATM", new GTANetworkAPI.Vector3(-810.81244, -1341.21, 5.150266), 5.0f, 1f, 0, new Color(255, 255, 255)); + } public static void EnterATMRange(ColShape colShape, Player client)