diff --git a/ReallifeGamemode.Server/Events/Login.cs b/ReallifeGamemode.Server/Events/Login.cs index 8413552f..2dbcd189 100644 --- a/ReallifeGamemode.Server/Events/Login.cs +++ b/ReallifeGamemode.Server/Events/Login.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using GTANetworkAPI; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; @@ -33,6 +33,8 @@ namespace ReallifeGamemode.Server.Events using (var dbContext = new DatabaseContext()) { var user = dbContext.Users + .Include(u => u.Faction) + .Include(u => u.FactionRank) .Include(u => u.Group) .Include(u => u.BankAccount) .SingleOrDefault(b => b.Name == username);