fixed blip colors

This commit is contained in:
Lukas Moungos
2019-12-15 14:10:45 +01:00
parent 3bad65f110
commit be65be7285
4 changed files with 39 additions and 19 deletions

View File

@@ -58,18 +58,21 @@ namespace ReallifeGamemode.Server.Events
player.SetData("editmode", false);
player.SetData("quicksavemode", "none");
}
switch (user.Faction.Name)
switch (user.Faction.Id)
{
case "Ballas":
case 8:
player.SetSharedData("blipColor", 83);
break;
case "Grove":
case 7:
player.SetSharedData("blipColor", 52);
break;
case "Trucker":
case 4:
player.SetSharedData("blipColor", 5);
break;
}
default:
player.SetSharedData("blipColor", 0);
break;
}
var userBankAccount = user.GetBankAccount();