Fix BusDriver Problem needs testing
(cherry picked from commit 8f9710688a)
This commit is contained in:
@@ -440,7 +440,6 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
else if (type == PROFESSIONAL)
|
else if (type == PROFESSIONAL)
|
||||||
BusJobEvents.payWage(player, WAGE_PROFESSIOAL);
|
BusJobEvents.payWage(player, WAGE_PROFESSIOAL);
|
||||||
|
|
||||||
|
|
||||||
NAPI.Task.Run(() =>
|
NAPI.Task.Run(() =>
|
||||||
{
|
{
|
||||||
if (type == BEGINNER)
|
if (type == BEGINNER)
|
||||||
@@ -451,6 +450,9 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
playerRoutePair3.Remove(player.Name);
|
playerRoutePair3.Remove(player.Name);
|
||||||
|
|
||||||
playerRouteCurrent.Remove(player.Name);
|
playerRouteCurrent.Remove(player.Name);
|
||||||
|
if (!GetPlayerInJob().Contains(player))
|
||||||
|
return;
|
||||||
|
|
||||||
BusDriverJob job = JobManager.GetJob<BusDriverJob>();
|
BusDriverJob job = JobManager.GetJob<BusDriverJob>();
|
||||||
StartBusRoute(player, type);
|
StartBusRoute(player, type);
|
||||||
}, delayTime: 10000);
|
}, delayTime: 10000);
|
||||||
@@ -464,7 +466,6 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
NAPI.ClientEvent.TriggerClientEventForAll("SERVER:setIndicatorStatus", veh.Handle.Value, data.Left, data.Right);
|
NAPI.ClientEvent.TriggerClientEventForAll("SERVER:setIndicatorStatus", veh.Handle.Value, data.Left, data.Right);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void BusCheckpoint(Player player)
|
public void BusCheckpoint(Player player)
|
||||||
{
|
{
|
||||||
if (!player.IsInVehicle || player.VehicleSeat != 0) return;
|
if (!player.IsInVehicle || player.VehicleSeat != 0) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user