fix error in taxi updatefare
This commit is contained in:
@@ -123,9 +123,15 @@ namespace ReallifeGamemode.Server.Job
|
||||
|
||||
public static void UpdateFare()
|
||||
{
|
||||
|
||||
foreach (var player in GetPlayerInJob())
|
||||
{
|
||||
User u = player.GetUser();
|
||||
if(u == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (u.JobId != 1) return;
|
||||
if (!player.HasData("hasPassager")) { player.SetData<bool>("hasPassager", false); continue; }
|
||||
int playerId = player.GetUser().Id;
|
||||
|
||||
Reference in New Issue
Block a user