Fix Wanted on OffDuty 187

This commit is contained in:
Siga
2020-03-17 16:22:50 +01:00
parent 01c2875e5b
commit 6fee9d7913

View File

@@ -17,6 +17,7 @@ namespace ReallifeGamemode.Server.Wanted
return; return;
User cop = copPlayer.GetUser(); User cop = copPlayer.GetUser();
if (!cop.GetData<bool>("duty")) return;
if (cop.FactionId == 1 || cop.FactionId == 3) if (cop.FactionId == 1 || cop.FactionId == 3)
{ {
using (var dbContext = new DatabaseContext()) using (var dbContext = new DatabaseContext())