will nur pullen
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using GTANetworkAPI;
|
||||
using ReallifeGamemode.Server.Util;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace ReallifeGamemode.Server.Job
|
||||
{
|
||||
@@ -14,7 +15,9 @@ namespace ReallifeGamemode.Server.Job
|
||||
|
||||
public override bool NeedVehicleToStart => true;
|
||||
|
||||
private readonly IReadOnlyCollection<Vector3> list = new List<Vector3>
|
||||
public String routeText;
|
||||
|
||||
private readonly IReadOnlyCollection<Vector3> Route1 = new List<Vector3>
|
||||
{
|
||||
new Vector3(-105.5951, -1684.548, 29.23948),
|
||||
new Vector3(-1056.246, -2552.576, 13.66063),
|
||||
@@ -25,6 +28,17 @@ namespace ReallifeGamemode.Server.Job
|
||||
new Vector3(218.1398, -850.9549, 30.16619)
|
||||
}.AsReadOnly();
|
||||
|
||||
private readonly IReadOnlyCollection<Vector3> Route2 = new List<Vector3>
|
||||
{
|
||||
new Vector3(403.4488, -786.5514, 29.2046),
|
||||
new Vector3(787.6898, -1364.566, 26.41318),
|
||||
new Vector3(942.0541, -1447.974, 31.14204),
|
||||
new Vector3(866.8322, -997.5225, 30.48207),
|
||||
new Vector3(785.4254, -781.3905, 26.33277),
|
||||
new Vector3(351.5793, -1064.582, 29.40059),
|
||||
new Vector3(235.0964, -857.1152, 29.74256),
|
||||
}.AsReadOnly();
|
||||
|
||||
public BusDriverJob()
|
||||
{
|
||||
JobStart += BusDriverJob_JobStart;
|
||||
@@ -32,7 +46,24 @@ namespace ReallifeGamemode.Server.Job
|
||||
|
||||
private void BusDriverJob_JobStart(Client player)
|
||||
{
|
||||
CheckPointHandle.StartCheckPointRoute(player, list);
|
||||
List<String> listRouteTexts = new List<string>();
|
||||
listRouteTexts.Add("Kurz 1");
|
||||
listRouteTexts.Add("Kurz 2");
|
||||
|
||||
player.TriggerEvent("showBusRouteMenu", JsonConvert.SerializeObject(listRouteTexts));
|
||||
}
|
||||
|
||||
[RemoteEvent("startBusRoute")]
|
||||
public void StartBusRoute(Client player, string type)
|
||||
{
|
||||
if (type == "Kurz 1")
|
||||
{
|
||||
CheckPointHandle.StartCheckPointRoute(player, Route1);
|
||||
} else if (type == "Kurz 2")
|
||||
{
|
||||
CheckPointHandle.StartCheckPointRoute(player, Route2);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user