add find haus in interactionMenu & fix after revive db dead = false
This commit is contained in:
@@ -164,6 +164,12 @@ namespace ReallifeGamemode.Server.Events
|
||||
bool ticket_boolean = player.HasData("ticket_boolean");
|
||||
int ticket_amount = 0;
|
||||
int pay_amount = 0;
|
||||
bool house = false;
|
||||
|
||||
if(u.House != null)
|
||||
{
|
||||
house = true;
|
||||
}
|
||||
|
||||
if (player.HasData("ticket_amount"))
|
||||
{
|
||||
@@ -175,7 +181,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
pay_amount = player.GetData<int>("pay_amount");
|
||||
}
|
||||
|
||||
player.TriggerEvent("SERVER:InteractionMenu_OpenMenu", JsonConvert.SerializeObject(accountData), factionleader, faction, group, factionInvite, groupInvite, ticket_boolean, ticket_amount, pay_amount);
|
||||
player.TriggerEvent("SERVER:InteractionMenu_OpenMenu", JsonConvert.SerializeObject(accountData), factionleader, faction, group, factionInvite, groupInvite, ticket_boolean, ticket_amount, pay_amount, house);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user