Fix nametags

This commit is contained in:
VegaZ
2021-04-04 18:05:35 +02:00
parent 58dd14b816
commit f4cee09256
4 changed files with 41 additions and 15 deletions

View File

@@ -461,6 +461,15 @@ namespace ReallifeGamemode.Server.Commands
target.SetSharedData("blipColor", 0);
switch (targetUser.FactionId)
{
case null:
player.SetSharedData("blipColor", 0);
player.SetSharedData("nameTagColor", 0);
break;
case 0:
player.SetSharedData("blipColor", 0);
break;
case 8:
target.SetSharedData("blipColor", 83);
break;
@@ -477,7 +486,7 @@ namespace ReallifeGamemode.Server.Commands
break;
}
target.TriggerEvent("jailTime", 0);
if (targetUser.FactionId != null) player.SetSharedData("nameTagColor", targetUser.FactionId);
targetUser.Wanteds = 0;
dbContext.SaveChanges();
}