Fix BusDriver Problem needs testing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user