atm bei fahrschule
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Numerics;
|
||||||
using GTANetworkAPI;
|
using GTANetworkAPI;
|
||||||
using ReallifeGamemode.Database.Entities;
|
using ReallifeGamemode.Database.Entities;
|
||||||
using ReallifeGamemode.Database.Models;
|
using ReallifeGamemode.Database.Models;
|
||||||
@@ -64,13 +65,17 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
{
|
{
|
||||||
foreach (var currentATM in dbContext.ATMs)
|
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.OnEntityEnterColShape += EnterATMRange;
|
||||||
currentColShape.OnEntityExitColShape += ExitATMRange;
|
currentColShape.OnEntityExitColShape += ExitATMRange;
|
||||||
ATMColShapes.Add(currentColShape);
|
ATMColShapes.Add(currentColShape);
|
||||||
currentColShape.SetData("id", currentATM.Id);
|
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)
|
public static void EnterATMRange(ColShape colShape, Player client)
|
||||||
|
|||||||
Reference in New Issue
Block a user