Added Faction Color to Player Blips for Trucker, Ballas and Grove.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user