Fixed Group Menu
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user