Müll Blip höhe angepasst

This commit is contained in:
VegaZ
2021-04-05 14:38:33 +02:00
parent 10939c6f0c
commit 53f46d28c8
2 changed files with 119 additions and 117 deletions

View File

@@ -29,7 +29,7 @@
vehicle = veh;
for (var i = 0; i < posArr.length; i++) {
let pos = new mp.Vector3(posArr[i].x, posArr[i].y, posArr[i].z - 1)
BlipTonne.push(mp.blips.new(1, pos, { name: 'Mülltonne', color: 45, shortRange: false }));
BlipTonne.push(mp.blips.new(1, new mp.Vector3(pos.x, pos.y, 1000), { name: 'Mülltonne', color: 45, shortRange: false }));
BlipTonne[i].setFlashTimer(2000);
ShapeTonne.push(mp.colshapes.newSphere(posArr[i].x, posArr[i].y, posArr[i].z + 0.5, 1.75));
}

View File

@@ -39,6 +39,7 @@ namespace ReallifeGamemode.Server.Job
}
public static List<MuellmannData> muellmanData = new List<MuellmannData>();
public float blipHeight = 1000;
private readonly IReadOnlyCollection<Vector3> vector3s = new List<Vector3>
{
@@ -164,6 +165,7 @@ namespace ReallifeGamemode.Server.Job
{
if (vehicle.Model == (uint)Types.VehicleModel.Trash || vehicle.Model == (uint)Types.VehicleModel.Trash2)
{
Vehicle veh;
foreach (var data in muellmanData)
{