Fix Wanted on OffDuty 187
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user