Fix BusDriver Problem needs testing

This commit is contained in:
2021-04-21 22:58:06 +02:00
parent 5cc0591e9c
commit 8f9710688a

View File

@@ -440,7 +440,6 @@ namespace ReallifeGamemode.Server.Job
else if (type == PROFESSIONAL)
BusJobEvents.payWage(player, WAGE_PROFESSIOAL);
NAPI.Task.Run(() =>
{
if (type == BEGINNER)
@@ -451,6 +450,9 @@ namespace ReallifeGamemode.Server.Job
playerRoutePair3.Remove(player.Name);
playerRouteCurrent.Remove(player.Name);
if (!GetPlayerInJob().Contains(player))
return;
BusDriverJob job = JobManager.GetJob<BusDriverJob>();
StartBusRoute(player, type);
}, delayTime: 10000);
@@ -464,7 +466,6 @@ namespace ReallifeGamemode.Server.Job
NAPI.ClientEvent.TriggerClientEventForAll("SERVER:setIndicatorStatus", veh.Handle.Value, data.Left, data.Right);
}
public void BusCheckpoint(Player player)
{
if (!player.IsInVehicle || player.VehicleSeat != 0) return;