Fixed Group Menu

This commit is contained in:
VegaZ
2021-03-11 22:53:54 +01:00
parent f3ea73f5b2
commit 5fc252ef43
3 changed files with 31 additions and 23 deletions

View File

@@ -58,7 +58,6 @@ namespace ReallifeGamemode.Server.Events
GroundItem.PickUpGroundItem(player);
}
/*
[RemoteEvent("keyPress:LEFT_ARROW")]
public void KeyPressLeftArrow(Player player)
@@ -84,7 +83,6 @@ namespace ReallifeGamemode.Server.Events
}
}
*/
[RemoteEvent("keyPress:RIGHT_ARROW")]
public void KeyPressRightArrow(Player player)
{
@@ -156,9 +154,9 @@ namespace ReallifeGamemode.Server.Events
nextPayday = u.PaydayTimer
};
string faction = u.Faction?.Name;
string faction = u.Faction?.Name ?? "Zivilist";
string factionleader = u.FactionLeader ? u.Faction.Name : null;
string group = u.Group != null && u.GroupRank >= GroupRank.MANAGER ? u.Group.Name : null;
string group = u.Group != null ? u.Group.Name : null;
bool factionInvite = player.HasData("accept_faction_invite");
bool groupInvite = player.HasData("accept_group_invite");
bool ticket_boolean = player.HasData("ticket_boolean");