Added Faction Color to Player Blips for Trucker, Ballas and Grove.

This commit is contained in:
Lukas Moungos
2019-12-15 13:52:06 +01:00
parent 9eac853a32
commit c90420ec16
6 changed files with 87 additions and 8 deletions

View File

@@ -58,7 +58,22 @@ namespace ReallifeGamemode.Server.Events
player.SetData("editmode", false);
player.SetData("quicksavemode", "none");
}
if(user.Faction != null)
{
switch (user.Faction.Name)
{
case "Ballas":
player.SetSharedData("blipColor", 83);
break;
case "Grove":
player.SetSharedData("blipColor", 52);
break;
case "Trucker":
player.SetSharedData("blipColor", 5);
break;
}
}
var userBankAccount = user.GetBankAccount();
userBankAccount.Balance = userBankAccount.Balance;