atm bei fahrschule

This commit is contained in:
2020-08-03 00:07:24 +02:00
parent 9aab1c7010
commit 35f325e628

View File

@@ -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)